mirror of
https://github.com/fluencelabs/musl
synced 2025-06-03 18:11:40 +00:00
fix fesetround - it was writing to status word instead of control word
This commit is contained in:
parent
b09b78905b
commit
52cf24a0f4
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user