comctl32/tests: Existing items aren't resorted after LVS_SORTASCENDING added.
[wine] / include / msvcrt / math.h
1 /*
2  * Math functions.
3  *
4  * Derived from the mingw header written by Colin Peters.
5  * Modified for Wine use by Hans Leidekker.
6  * This file is in the public domain.
7  */
8
9 #ifndef __WINE_MATH_H
10 #define __WINE_MATH_H
11
12 #include <crtdefs.h>
13
14 #include <pshpack8.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 #define _DOMAIN         1       /* domain error in argument */
21 #define _SING           2       /* singularity */
22 #define _OVERFLOW       3       /* range overflow */
23 #define _UNDERFLOW      4       /* range underflow */
24 #define _TLOSS          5       /* total loss of precision */
25 #define _PLOSS          6       /* partial loss of precision */
26
27 #ifndef _EXCEPTION_DEFINED
28 #define _EXCEPTION_DEFINED
29 struct _exception
30 {
31   int     type;
32   char    *name;
33   double  arg1;
34   double  arg2;
35   double  retval;
36 };
37 #endif /* _EXCEPTION_DEFINED */
38
39 #ifndef _COMPLEX_DEFINED
40 #define _COMPLEX_DEFINED
41 struct _complex
42 {
43   double x;      /* Real part */
44   double y;      /* Imaginary part */
45 };
46 #endif /* _COMPLEX_DEFINED */
47
48 double __cdecl sin(double);
49 double __cdecl cos(double);
50 double __cdecl tan(double);
51 double __cdecl sinh(double);
52 double __cdecl cosh(double);
53 double __cdecl tanh(double);
54 double __cdecl asin(double);
55 double __cdecl acos(double);
56 double __cdecl atan(double);
57 double __cdecl atan2(double, double);
58 double __cdecl exp(double);
59 double __cdecl log(double);
60 double __cdecl log10(double);
61 double __cdecl pow(double, double);
62 double __cdecl sqrt(double);
63 double __cdecl ceil(double);
64 double __cdecl floor(double);
65 double __cdecl fabs(double);
66 double __cdecl ldexp(double, int);
67 double __cdecl frexp(double, int*);
68 double __cdecl modf(double, double*);
69 double __cdecl fmod(double, double);
70
71 double __cdecl hypot(double, double);
72 double __cdecl j0(double);
73 double __cdecl j1(double);
74 double __cdecl jn(int, double);
75 double __cdecl y0(double);
76 double __cdecl y1(double);
77 double __cdecl yn(int, double);
78
79 int __cdecl _matherr(struct _exception*);
80 double __cdecl _cabs(struct _complex);
81
82 #ifndef HUGE_VAL
83 #  if defined(__GNUC__) && (__GNUC__ >= 3)
84 #    define HUGE_VAL    (__extension__ 0x1.0p2047)
85 #  else
86 static const union {
87     unsigned char __c[8];
88     double __d;
89 } __huge_val = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
90 #    define HUGE_VAL    (__huge_val.__d)
91 #  endif
92 #endif
93
94 #ifdef __cplusplus
95 }
96 #endif
97
98 #include <poppack.h>
99
100 #endif /* __WINE_MATH_H */