X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fmath.h;h=6ac91da24f94365aa06bd904fb35036d1af21ac4;hb=ecc082c61b6da9a8b2ae0c07aa3331673834d94a;hp=3c2105ef5d968d537dca8e9994f6013e75455398;hpb=46db37289f917e23877a0e0df88cbb150805bc97;p=musl diff --git a/include/math.h b/include/math.h index 3c2105ef..6ac91da2 100644 --- a/include/math.h +++ b/include/math.h @@ -16,7 +16,7 @@ extern "C" { #define INFINITY __builtin_inff() #else #define NAN (0.0f/0.0f) -#define INFINITY 1e40f +#define INFINITY 1e5000f #endif #define HUGE_VALF INFINITY @@ -42,12 +42,14 @@ int __fpclassifyl(long double); static __inline unsigned __FLOAT_BITS(float __f) { - union {float __f; unsigned __i;} __u = {__f}; + union {float __f; unsigned __i;} __u; + __u.__f = __f; return __u.__i; } static __inline unsigned long long __DOUBLE_BITS(double __f) { - union {double __f; unsigned long long __i;} __u = {__f}; + union {double __f; unsigned long long __i;} __u; + __u.__f = __f; return __u.__i; } @@ -381,6 +383,12 @@ double yn(int, double); #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define HUGE 3.40282346638528859812e+38F +double drem(double, double); +float dremf(float, float); + +int finite(double); +int finitef(float); + double scalb(double, double); float scalbf(float, float);