projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TODO update
[libm]
/
src
/
math
/
remainder.c
diff --git
a/src/math/remainder.c
b/src/math/remainder.c
index
c9b1b2b
..
db176c8
100644
(file)
--- a/
src/math/remainder.c
+++ b/
src/math/remainder.c
@@
-39,6
+39,7
@@
double remainder(double x, double p)
return (x*p)/(x*p);
if (hx >= 0x7ff00000 || /* x not finite */
(hp >= 0x7ff00000 && (hp-0x7ff00000 | lp) != 0)) /* p is NaN */
+ // FIXME: why long double?
return ((long double)x*p)/((long double)x*p);
if (hp <= 0x7fdfffff)