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/remainderf.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math/i386/remainderf.s') diff --git a/src/math/i386/remainderf.s b/src/math/i386/remainderf.s index ac6e3677..6a7378a3 100644 --- a/src/math/i386/remainderf.s +++ b/src/math/i386/remainderf.s @@ -7,7 +7,7 @@ dremf: flds 8(%esp) flds 4(%esp) 1: fprem1 - fstsw %ax + fnstsw %ax sahf jp 1b fstp %st(1) -- cgit v1.2.1