提交 d5e576c7 编写于 作者: R Rich Felker

minor 387 fenv optimizations

上级 0b337e04
......@@ -31,22 +31,21 @@ feraiseexcept:
.type fesetround,@function
fesetround:
mov 4(%esp),%ecx
push %eax
xor %eax,%eax
sub $4,%esp
fnstcw (%esp)
andb $0xf3,1(%esp)
or %cx,(%esp)
or %ch,1(%esp)
fldcw (%esp)
add $4,%esp
pop %ecx
ret
.global fegetround
.type fegetround,@function
fegetround:
sub $4,%esp
push %eax
fnstcw (%esp)
mov (%esp),%ax
add $4,%esp
pop %eax
and $0xc00,%eax
ret
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册