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/x32/fmodl.s | 2 +- src/math/x32/remainderl.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/math/x32') diff --git a/src/math/x32/fmodl.s b/src/math/x32/fmodl.s index b9513204..c3f790c9 100644 --- a/src/math/x32/fmodl.s +++ b/src/math/x32/fmodl.s @@ -4,7 +4,7 @@ fmodl: fldt 24(%esp) fldt 8(%esp) 1: fprem - fstsw %ax + fnstsw %ax testb $4,%ah jnz 1b fstp %st(1) diff --git a/src/math/x32/remainderl.s b/src/math/x32/remainderl.s index 79bf4feb..376ba0e2 100644 --- a/src/math/x32/remainderl.s +++ b/src/math/x32/remainderl.s @@ -4,7 +4,7 @@ remainderl: fldt 24(%esp) fldt 8(%esp) 1: fprem1 - fstsw %ax + fnstsw %ax testb $4,%ah jnz 1b fstp %st(1) -- cgit v1.2.1