cosmopolitan/libc/math/fegetround.S

10 lines
130 B
ArmAsm

.global fegetround
.type fegetround,@function
fegetround:
push %rax
stmxcsr (%rsp)
pop %rax
shr $3,%eax
and $0xc00,%eax
ret