projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various minor style fixes
[libm]
/
src
/
math
/
remainderf.c
diff --git
a/src/math/remainderf.c
b/src/math/remainderf.c
index
30875db
..
c17bb4f
100644
(file)
--- a/
src/math/remainderf.c
+++ b/
src/math/remainderf.c
@@
-33,6
+33,7
@@
float remainderf(float x, float p)
if (hp == 0) /* p = 0 */
return (x*p)/(x*p);
if (hx >= 0x7f800000 || hp > 0x7f800000) /* x not finite, p is NaN */
if (hp == 0) /* p = 0 */
return (x*p)/(x*p);
if (hx >= 0x7f800000 || hp > 0x7f800000) /* x not finite, p is NaN */
+ // FIXME: why long double?
return ((long double)x*p)/((long double)x*p);
if (hp <= 0x7effffff)
return ((long double)x*p)/((long double)x*p);
if (hp <= 0x7effffff)