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/remainderl.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math/i386/remainderl.s') diff --git a/src/math/i386/remainderl.s b/src/math/i386/remainderl.s index 00978729..b41518ed 100644 --- a/src/math/i386/remainderl.s +++ b/src/math/i386/remainderl.s @@ -4,7 +4,7 @@ remainderl: fldt 16(%esp) fldt 4(%esp) 1: fprem1 - fstsw %ax + fnstsw %ax sahf jp 1b fstp %st(1) -- cgit v1.2.3-70-g09d2