diff options
author | Szabolcs Nagy <nsz@port70.net> | 2015-02-09 01:16:35 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2015-02-09 01:16:35 +0100 |
commit | 018f9df4440e1d5640f9d50dc08bee9bbc40b3b6 (patch) | |
tree | ec82589a3dfc64706bd0322f5e0ce3b84a4077e8 /src | |
parent | 04d522cba6f54dc8c4df9dd963d254de257bf74c (diff) | |
download | musl-018f9df4440e1d5640f9d50dc08bee9bbc40b3b6.tar.gz musl-018f9df4440e1d5640f9d50dc08bee9bbc40b3b6.tar.xz musl-018f9df4440e1d5640f9d50dc08bee9bbc40b3b6.zip |
math: fix fmodl for IEEE binary128
This trivial copy-paste bug went unnoticed due to lack of testing. No currently supported target archs are affected.
Diffstat (limited to 'src')
-rw-r--r-- | src/math/fmodl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/fmodl.c b/src/math/fmodl.c index 54af6a3f..9f5b8739 100644 --- 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 = ux.i2.lo; + ylo = uy.i2.lo; for (; ex > ey; ex--) { hi = xhi - yhi; lo = xlo - ylo; |