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:
b09b789
)
fix fesetround - it was writing to status word instead of control word
author
Rich Felker
<dalias@aerifal.cx>
Mon, 13 Jun 2011 17:37:16 +0000
(13:37 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 13 Jun 2011 17:37:16 +0000
(13:37 -0400)
src/fenv/i386/fenv.s
patch
|
blob
|
history
diff --git
a/src/fenv/i386/fenv.s
b/src/fenv/i386/fenv.s
index 72d2ed7dbbb0057ec408dade62422dabd090f655..34101d58956331a46c526eb0ada8701105b340b6 100644
(file)
--- a/
src/fenv/i386/fenv.s
+++ b/
src/fenv/i386/fenv.s
@@
-27,10
+27,15
@@
feraiseexcept:
.global fesetround
fesetround:
+ mov 4(%esp),%ecx
xor %eax,%eax
- mov $0xc00,%ecx
- mov 4(%esp),%edx
- jmp 2b
+ sub $32,%esp
+ fnstenv (%esp)
+ andb $0xf3,1(%esp)
+ or %ecx,(%esp)
+ fldenv (%esp)
+ add $32,%esp
+ ret
.global fegetround
fegetround: