projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04d522c
)
math: fix fmodl for IEEE binary128
author
Szabolcs Nagy
<nsz@port70.net>
Mon, 9 Feb 2015 00:16:35 +0000
(
01:16
+0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Mon, 9 Feb 2015 00:16:35 +0000
(
01:16
+0100)
This trivial copy-paste bug went unnoticed due to lack of testing.
No currently supported target archs are affected.
src/math/fmodl.c
patch
|
blob
|
history
diff --git
a/src/math/fmodl.c
b/src/math/fmodl.c
index 54af6a3fd1592b4efb592fd21093e8f469a416c1..9f5b87393dcad9ffcd44876d7b76120563a3e85f 100644
(file)
--- a/
src/math/fmodl.c
+++ b/
src/math/fmodl.c
@@
-63,7
+63,7
@@
long double fmodl(long double x, long double y)
xhi = (ux.i2.hi & -1ULL>>16) | 1ULL<<48;
yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48;
xlo = ux.i2.lo;
- ylo = u
x
.i2.lo;
+ ylo = u
y
.i2.lo;
for (; ex > ey; ex--) {
hi = xhi - yhi;
lo = xlo - ylo;