about summary refs log tree commit diff
path: root/src/math/x32/remainderl.s
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-11-05 22:13:58 +0100
committerSzabolcs Nagy <nsz@port70.net>2014-11-05 22:13:58 +0100
commitec4318943a26d4bd4050481d11709853184f2794 (patch)
tree57ea5ca863de0d2a6e96f52787f9d9ba29cd14a0 /src/math/x32/remainderl.s
parenta732e80d33b4fd6f510f7cec4f5573ef5d89bc4e (diff)
downloadmusl-ec4318943a26d4bd4050481d11709853184f2794.tar.gz
musl-ec4318943a26d4bd4050481d11709853184f2794.tar.xz
musl-ec4318943a26d4bd4050481d11709853184f2794.zip
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.
Diffstat (limited to 'src/math/x32/remainderl.s')
-rw-r--r--src/math/x32/remainderl.s2
1 files changed, 1 insertions, 1 deletions
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)