projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix signal.h breakage from moving stack_t to arch-specific bits
[musl]
/
include
/
math.h
diff --git
a/include/math.h
b/include/math.h
index
3c2105e
..
6ac91da
100644
(file)
--- 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 __builtin_inff()
#else
#define NAN (0.0f/0.0f)
-#define INFINITY 1e
4
0f
+#define INFINITY 1e
500
0f
#endif
#define HUGE_VALF INFINITY
#endif
#define HUGE_VALF INFINITY
@@
-42,12
+42,14
@@
int __fpclassifyl(long double);
static __inline unsigned __FLOAT_BITS(float __f)
{
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)
{
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;
}
return __u.__i;
}
@@
-381,6
+383,12
@@
double yn(int, double);
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define HUGE 3.40282346638528859812e+38F
#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);
double scalb(double, double);
float scalbf(float, float);