projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71d23b3
)
fenv: fix i386 fesetround for sse
author
Szabolcs Nagy
<nsz@port70.net>
Mon, 28 Oct 2013 20:33:54 +0000
(20:33 +0000)
committer
Szabolcs Nagy
<nsz@port70.net>
Mon, 28 Oct 2013 20:33:54 +0000
(20:33 +0000)
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.
src/fenv/i386/fenv.s
patch
|
blob
|
history
diff --git
a/src/fenv/i386/fenv.s
b/src/fenv/i386/fenv.s
index eaeb6bed01de85c2baab1d9df61a328a61521296..f6036d678499a05b7f504b7509f54cf2f7f1b2b8 100644
(file)
--- 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)
- j
mp
1f
+ j
z
1f
stmxcsr (%esp)
shl $3,%ch
andb $0x9f,1(%esp)