diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-11-05 22:13:58 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2014-11-05 22:13:58 +0100 |
commit | ec4318943a26d4bd4050481d11709853184f2794 (patch) | |
tree | 57ea5ca863de0d2a6e96f52787f9d9ba29cd14a0 /src/math/i386/sqrt.s | |
parent | a732e80d33b4fd6f510f7cec4f5573ef5d89bc4e (diff) | |
download | musl-ec4318943a26d4bd4050481d11709853184f2794.tar.gz musl-ec4318943a26d4bd4050481d11709853184f2794.tar.bz2 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/i386/sqrt.s')
-rw-r--r-- | src/math/i386/sqrt.s | 2 |
1 files changed, 1 insertions, 1 deletions
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) |