projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first try at writing an efficient and "correct" exp10
[oweals/musl.git]
/
src
/
math
/
modfl.c
diff --git
a/src/math/modfl.c
b/src/math/modfl.c
index 6520a1c2baab5f8435bfc570908eb8c2c7082bc3..f6d624446c8dfd2b5dce4eeb6074f591284715fe 100644
(file)
--- a/
src/math/modfl.c
+++ b/
src/math/modfl.c
@@
-81,7
+81,7
@@
long double modfl(long double x, long double *iptr)
return x - ux.e;
} else if (e >= LDBL_MANT_DIG - 1) { /* x has no fraction part. */
*iptr = x;
return x - ux.e;
} else if (e >= LDBL_MANT_DIG - 1) { /* x has no fraction part. */
*iptr = x;
- if (e == LDBL_MAX_EXP && (
ux.bits.manh
|ux.bits.manl)) /* nan */
+ if (e == LDBL_MAX_EXP && (
(ux.bits.manh&~LDBL_NBIT)
|ux.bits.manl)) /* nan */
return x;
return zero[ux.bits.sign];
} else { /* Fraction part is in manl. */
return x;
return zero[ux.bits.sign];
} else { /* Fraction part is in manl. */