projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm]
/
src
/
math
/
__fpclassifyl.c
diff --git
a/src/math/__fpclassifyl.c
b/src/math/__fpclassifyl.c
index
308dc21
..
c886e5a
100644
(file)
--- a/
src/math/__fpclassifyl.c
+++ b/
src/math/__fpclassifyl.c
@@
-1,8
+1,8
@@
#include "libm.h"
#include "libm.h"
-#if LD
6
4
+#if LD
BL_MANT_DIG == 53 && LDBL_MAX_EXP == 102
4
-#elif LD
80
+#elif LD
BL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
int __fpclassifyl(long double x)
{
union ldshape u = { x };
int __fpclassifyl(long double x)
{
union ldshape u = { x };
@@
-13,7
+13,7
@@
int __fpclassifyl(long double x)
return u.bits.m & ~((uint64_t)1<<63) ? FP_NAN : FP_INFINITE;
return u.bits.m & (uint64_t)1<<63 ? FP_NORMAL : FP_NAN;
}
return u.bits.m & ~((uint64_t)1<<63) ? FP_NAN : FP_INFINITE;
return u.bits.m & (uint64_t)1<<63 ? FP_NORMAL : FP_NAN;
}
-#elif LD
128
+#elif LD
BL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
int __fpclassifyl(long double x)
{
union ldshape u = { x };
int __fpclassifyl(long double x)
{
union ldshape u = { x };