Fix several build failures with GCC6 due to unused static variables.
[glibc.git] / sysdeps / ieee754 / dbl-64 / wordsize-64 / math_private.h
blob4f9219934a3411262d97d4e75505adb87483d7d6
1 #ifndef _MATH_PRIVATE_H_
3 #include_next <math_private.h>
4 #include <stdint.h>
6 #ifndef __isnan
7 extern __always_inline int
8 __isnan (double d)
10 uint64_t di;
11 EXTRACT_WORDS64 (di, d);
12 return (di & 0x7fffffffffffffffull) > 0x7ff0000000000000ull;
14 #endif
16 #ifndef __isinf_ns
17 extern __always_inline int
18 __isinf_ns (double d)
20 uint64_t di;
21 EXTRACT_WORDS64 (di, d);
22 return (di & 0x7fffffffffffffffull) == 0x7ff0000000000000ull;
24 #endif
26 #ifndef __finite
27 extern __always_inline int
28 __finite (double d)
30 uint64_t di;
31 EXTRACT_WORDS64 (di, d);
32 return (di & 0x7fffffffffffffffull) < 0x7ff0000000000000ull;
34 #endif
36 #endif /* _MATH_PRIVATE_H_ */