forked from KolibriOS/kolibrios
This version of menuetlibc was taken from revision 4743, right before I made any changes git-svn-id: svn://kolibrios.org@4973 a494cfbc-eb01-0410-851d-a64ba20cac60
19 lines
203 B
ArmAsm
19 lines
203 B
ArmAsm
#include<libc/asm.h>
|
|
MK_C_SYM(sin)
|
|
fldl 4(%esp)
|
|
fsin
|
|
fnstsw %ax
|
|
andw $0x400,%ax
|
|
jnz 1f
|
|
ret
|
|
1: fldpi
|
|
fadd %st(0)
|
|
fxch %st(1)
|
|
2: fprem1
|
|
fnstsw %ax
|
|
andw $0x400,%ax
|
|
jnz 2b
|
|
fstp %st(1)
|
|
fsin
|
|
ret
|