提交 52cf24a0 编写于 作者: R Rich Felker

fix fesetround - it was writing to status word instead of control word

上级 b09b7890
...@@ -27,10 +27,15 @@ feraiseexcept: ...@@ -27,10 +27,15 @@ feraiseexcept:
.global fesetround .global fesetround
fesetround: fesetround:
mov 4(%esp),%ecx
xor %eax,%eax xor %eax,%eax
mov $0xc00,%ecx sub $32,%esp
mov 4(%esp),%edx fnstenv (%esp)
jmp 2b andb $0xf3,1(%esp)
or %ecx,(%esp)
fldenv (%esp)
add $32,%esp
ret
.global fegetround .global fegetround
fegetround: fegetround:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册