From ec4318943a26d4bd4050481d11709853184f2794 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 5 Nov 2014 22:13:58 +0100 Subject: math: use fnstsw consistently instead of fstsw in x87 asm fnstsw does not wait for pending unmasked x87 floating-point exceptions and it is the same as fstsw when all exceptions are masked which is the only environment libc supports. --- src/math/i386/sqrt.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math/i386/sqrt.s') diff --git a/src/math/i386/sqrt.s b/src/math/i386/sqrt.s index 8289d094..57837e25 100644 --- a/src/math/i386/sqrt.s +++ b/src/math/i386/sqrt.s @@ -2,7 +2,7 @@ .type sqrt,@function sqrt: fldl 4(%esp) fsqrt - fstsw %ax + fnstsw %ax sub $12,%esp fld %st(0) fstpt (%esp) -- cgit 1.4.1