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.
11 #ifndef __WINE_USE_MSVCRT
12 #define __WINE_USE_MSVCRT
19 #define _DOMAIN 1 /* domain error in argument */
20 #define _SING 2 /* singularity */
21 #define _OVERFLOW 3 /* range overflow */
22 #define _UNDERFLOW 4 /* range underflow */
23 #define _TLOSS 5 /* total loss of precision */
24 #define _PLOSS 6 /* partial loss of precision */
26 #ifndef _EXCEPTION_DEFINED
27 #define _EXCEPTION_DEFINED
36 #endif /* _EXCEPTION_DEFINED */
38 #ifndef _COMPLEX_DEFINED
39 #define _COMPLEX_DEFINED
42 double x; /* Real part */
43 double y; /* Imaginary part */
45 #endif /* _COMPLEX_DEFINED */
56 double atan2(double, double);
60 double pow(double, double);
65 double ldexp(double, int);
66 double frexp(double, int*);
67 double modf(double, double*);
68 double fmod(double, double);
70 double hypot(double, double);
73 double jn(int, double);
76 double yn(int, double);
78 int _matherr(struct _exception*);
79 double _cabs(struct _complex);
82 # if defined(__GNUC__) && (__GNUC__ >= 3)
83 # define HUGE_VAL (__extension__ 0x1.0p2047)
88 } __huge_val = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
89 # define HUGE_VAL (__huge_val.__d)
97 #endif /* __WINE_MATH_H */