musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/fmodl.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015年02月09日 01:16:35 +0100
committerSzabolcs Nagy <nsz@port70.net>2015年02月09日 01:16:35 +0100
commit018f9df4440e1d5640f9d50dc08bee9bbc40b3b6 (patch)
treeec82589a3dfc64706bd0322f5e0ce3b84a4077e8 /src/math/fmodl.c
parent04d522cba6f54dc8c4df9dd963d254de257bf74c (diff)
downloadmusl-018f9df4440e1d5640f9d50dc08bee9bbc40b3b6.tar.gz
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/math/fmodl.c')
-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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 21:29:27 +0000

AltStyle によって変換されたページ (->オリジナル) /