diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-10-28 20:33:54 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-10-28 20:33:54 +0000 |
commit | 7e01b8f09b6d50991472e0198c4959b085884dec (patch) | |
tree | b7370000d62298f9b039c4f14214b3e67bed4796 /src/fenv/i386/fenv.s | |
parent | 71d23b310383699a3101ea8bf088398796529ddd (diff) | |
download | musl-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/i386/fenv.s')
-rw-r--r-- | src/fenv/i386/fenv.s | 2 |
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) |