Clib create_file, read_file, write_file: watcom-specific implementation
git-svn-id: svn://kolibrios.org@711 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
29
programs/develop/open watcom/trunk/clib/math/sinf.asm
Normal file
29
programs/develop/open watcom/trunk/clib/math/sinf.asm
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
include mdef.inc
|
||||
|
||||
modstart sinf
|
||||
|
||||
xdefp _sinf
|
||||
|
||||
_sinf proc
|
||||
fsin
|
||||
fnstsw ax
|
||||
test eax, 0x400
|
||||
jnz L1
|
||||
ret
|
||||
|
||||
L1: fldpi
|
||||
fadd st,st
|
||||
fxch st(1)
|
||||
L2:
|
||||
fprem1
|
||||
fnstsw ax
|
||||
test eax,0x400
|
||||
jnz L2
|
||||
fstp st(1)
|
||||
fsin
|
||||
ret
|
||||
_sinf endp
|
||||
|
||||
endmod
|
||||
end
|
Reference in New Issue
Block a user