From: Szabolcs Nagy Date: Mon, 9 Feb 2015 00:16:35 +0000 (+0100) Subject: math: fix fmodl for IEEE binary128 X-Git-Tag: v1.1.7~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=018f9df4440e1d5640f9d50dc08bee9bbc40b3b6;p=oweals%2Fmusl.git 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. --- 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;