>From 7fd1bc3b8ecf61d758498edd7f4a75a079ee8df5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 21 Mar 2020 16:24:04 -0400 Subject: [PATCH 2/3] sqrt i386 fixup --- src/math/i386/sqrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/i386/sqrt.c b/src/math/i386/sqrt.c index 619df056..934fbcca 100644 --- a/src/math/i386/sqrt.c +++ b/src/math/i386/sqrt.c @@ -10,6 +10,6 @@ double sqrt(double x) /* Rounding to double would have encountered an exact halfway case. Adjust mantissa downwards if fsqrt rounded up, else upwards. (result of fsqrt could not have been exact) */ - ux.i.m ^= (fpsr & 0x200) + 0x200; + ux.i.m ^= (fpsr & 0x200) + 0x300; return (double)ux.f; } -- 2.21.0