projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initial cmath code and minor libm.h update
[libm]
/
src
/
math
/
__fpclassifyl.c
diff --git
a/src/math/__fpclassifyl.c
b/src/math/__fpclassifyl.c
index
daeeaab
..
a5ad36f
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 };
@@
-10,10
+10,10
@@
int __fpclassifyl(long double x)
if (!e)
return u.bits.m ? FP_SUBNORMAL : FP_ZERO;
if (e == 0x7fff)
if (!e)
return u.bits.m ? FP_SUBNORMAL : FP_ZERO;
if (e == 0x7fff)
- return u.bits.m &
~(uint64_t)1<<63
? FP_NAN : FP_INFINITE;
+ return u.bits.m &
(uint64_t)-1>>1
? 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_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 };