cosmopolitan/libc/math/fegetround.S

10 lines
130 B
ArmAsm
Raw Normal View History

2020-06-15 14:18:57 +00:00
.global fegetround
.type fegetround,@function
fegetround:
push %rax
stmxcsr (%rsp)
pop %rax
shr $3,%eax
and $0xc00,%eax
ret