Bladeren bron

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.
Szabolcs Nagy 10 jaren geleden
bovenliggende
commit
018f9df444
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/math/fmodl.c

+ 1 - 1
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;