i686-fix-rounding.patch (406B)
1 diff -uNr musl-1.1.23.orig/src/math/round.c musl-1.1.23/src/math/round.c 2 --- musl-1.1.23.orig/src/math/round.c 2019-07-16 14:30:39.000000000 -0500 3 +++ musl-1.1.23/src/math/round.c 2019-09-07 14:26:53.555422685 -0500 4 @@ -22,7 +22,7 @@ 5 FORCE_EVAL(x + toint); 6 return 0*u.f; 7 } 8 - y = x + toint - toint - x; 9 + y = (double)(x + 0x1p52) - 0x1p52 - x; 10 if (y > 0.5) 11 y = y + x - 1; 12 else if (y <= -0.5)