summaryrefslogtreecommitdiff
path: root/src/fenv
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-10-28 20:33:54 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-10-28 20:33:54 +0000
commit7e01b8f09b6d50991472e0198c4959b085884dec (patch)
treeb7370000d62298f9b039c4f14214b3e67bed4796 /src/fenv
parent71d23b310383699a3101ea8bf088398796529ddd (diff)
downloadmusl-7e01b8f09b6d50991472e0198c4959b085884dec.tar.gz
musl-7e01b8f09b6d50991472e0198c4959b085884dec.tar.bz2
musl-7e01b8f09b6d50991472e0198c4959b085884dec.tar.xz
musl-7e01b8f09b6d50991472e0198c4959b085884dec.zip
fenv: fix i386 fesetround for sse
i386 fenv code checks __hwcap for sse support, but in fesetround the sse code was unconditionally jumped over after the test so the sse rounding mode was never set.
Diffstat (limited to 'src/fenv')
-rw-r--r--src/fenv/i386/fenv.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fenv/i386/fenv.s b/src/fenv/i386/fenv.s
index eaeb6bed..f6036d67 100644
--- a/src/fenv/i386/fenv.s
+++ b/src/fenv/i386/fenv.s
@@ -75,7 +75,7 @@ __fesetround:
1: addl $__hwcap-1b,(%esp)
pop %edx
testl $0x02000000,(%edx)
- jmp 1f
+ jz 1f
stmxcsr (%esp)
shl $3,%ch
andb $0x9f,1(%esp)