Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / mathfp / zmath.h
blob67bdb24a79485e1a73a4528be0fa1f1d08c916bb
1 #ifndef __ZMATH_H
2 #define __ZMATH_H
4 #include <errno.h>
6 #define NUM 3
7 #define NAN 2
8 #define INF 1
10 #define __PI 3.14159265358979323846
11 #define __SQRT_HALF 0.70710678118654752440
12 #define __PI_OVER_TWO 1.57079632679489661923132
14 extern double BIGX;
15 extern double SMALLX;
17 typedef const union
19 long l[2];
20 double d;
21 } udouble;
23 typedef const union
25 long l;
26 float f;
27 } ufloat;
29 extern double BIGX;
30 extern double SMALLX;
32 extern udouble z_infinity;
33 extern udouble z_notanum;
34 extern double z_rooteps;
36 extern ufloat z_infinity_f;
37 extern ufloat z_notanum_f;
38 extern float z_rooteps_f;
40 /* Core math routines. */
42 int numtest (double);
43 int numtestf (float);
44 double logarithm (double, int);
45 float logarithmf (float, int);
46 double sine (double, int);
47 float sinef (float, int);
48 double asine (double, int);
49 float asinef (float, int);
50 double atangent (double, double, double, int);
51 float atangentf (float, float, float, int);
52 double sineh (double, int);
53 float sinehf (float, int);
55 #endif /* no __ZMATH_H */