diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:31:57 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:31:57 +0000 |
commit | 09e967c2d732783b2579e4e120cd9b608404cb00 (patch) | |
tree | 8d2783a6a7e33608c6012efd6a88b8f5694df81d /mdk-stage1/dietlibc/include/math.h | |
parent | 18fcff49d3c836697d3b75a3d01d31c700e69974 (diff) | |
download | drakx-09e967c2d732783b2579e4e120cd9b608404cb00.tar drakx-09e967c2d732783b2579e4e120cd9b608404cb00.tar.gz drakx-09e967c2d732783b2579e4e120cd9b608404cb00.tar.bz2 drakx-09e967c2d732783b2579e4e120cd9b608404cb00.tar.xz drakx-09e967c2d732783b2579e4e120cd9b608404cb00.zip |
Merge from R9_0-AMD64, most notably:
- AMD64 support to insmod-busybox, minilibc, et al.
- Sync with insmod-modutils 2.4.19 something but everyone should use
dietlibc nowadays
- Factor out compilation and prefix with $(DIET) for dietlibc builds
- 64-bit & varargs fixes
Diffstat (limited to 'mdk-stage1/dietlibc/include/math.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/math.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/math.h b/mdk-stage1/dietlibc/include/math.h index 2f4f2e33f..2cb545237 100644 --- a/mdk-stage1/dietlibc/include/math.h +++ b/mdk-stage1/dietlibc/include/math.h @@ -48,6 +48,7 @@ double acosh(double d) __THROW __attribute__((__const__)); double atanh(double d) __THROW __attribute__((__const__)); double exp(double d) __THROW __attribute__((__const__)); +double exp10(double d) __THROW __attribute__((__const__)); double log(double d) __THROW __attribute__((__const__)); double log10(double d) __THROW __attribute__((__const__)); @@ -57,5 +58,39 @@ double sqrt(double x) __THROW __attribute__((__const__)); double fabs(double x) __THROW __attribute__((__const__)); double fmod(double x, double y) __THROW __attribute__((__const__)); +double floor(double x) __attribute__((__const__)); +double ceil(double x) __attribute__((__const__)); + +double expm1(double x) __THROW __attribute__((__const__)); +double hypot(double x, double y) __THROW __attribute__((__const__)); +double atan2(double x, double y) __THROW __attribute__((__const__)); + +double copysign(double value, double sign) __attribute__((__const__)); + +# define HUGE_VAL \ + (__extension__ \ + ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) \ + { __l: 0x000000007ff00000ULL }).__d) + +#ifdef _GNU_SOURCE +void sincos(double x, double* sinx, double* cosx); +double ipow (double mant, int expo); +#endif + +int isnan(double d) __attribute__((__const__)); +int isinf(double d) __attribute__((__const__)); +int finite(double d) __attribute__((__const__)); + +double j0(double x); +double j1(double x); +double jn(int n, double x); +double y0(double x); +double y1(double x); +double yn(int n, double x); +double erf(double x); +double erfc(double x); +double lgamma(double x); + +double rint(double x); #endif |