home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
src
/
sys
/
s
/
_math
< prev
next >
Wrap
Text File
|
1994-02-26
|
3KB
|
175 lines
; /* _math.s (c) Copyright 1990 H.Rogers */
GET @.src.sys.s.asm_dec
AREA |C$$code|,CODE,READONLY
EXPORT acos
NAME acos
acos
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
ACSD f0,f0
MOVS pc,lr
EXPORT asin
NAME asin
asin
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
ASND f0,f0
MOVS pc,lr
EXPORT atan
NAME atan
atan
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
ATND f0,f0
MOVS pc,lr
EXPORT atan2
NAME atan2
atan2
STMFD sp!,{a1,a2,a3,a4}
LDFD f0,[sp],#8
LDFD f1,[sp],#8
DVFD f0,f1,f0
ATND f0,f0
MOVS pc,lr
EXPORT cos
NAME cos
cos
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
COSD f0,f0
MOVS pc,lr
EXPORT sin
NAME sin
sin
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
SIND f0,f0
MOVS pc,lr
EXPORT tan
NAME tan
tan
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
TAND f0,f0
MOVS pc,lr
EXPORT exp
NAME exp
exp
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
EXPD f0,f0
MOVS pc,lr
EXPORT log
NAME log
log
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
LGND f0,f0
MOVS pc,lr
EXPORT log10
NAME log10
log10
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
LOGD f0,f0
MOVS pc,lr
EXPORT modf
NAME modf
modf
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
RNDD f1,f0
STFD f1,[a3,#0]
SUFD f0,f0,f1
MOVS pc,lr
EXPORT pow
NAME pow
pow
STMFD sp!,{a1,a2,a3,a4}
LDFD f0,[sp],#8
LDFD f1,[sp],#8
POWD f0,f0,f1
MOVS pc,lr
EXPORT sqrt
NAME sqrt
sqrt
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
SQTD f0,f0
MOVS pc,lr
EXPORT ceil
NAME ceil
ceil
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
FIXD a1,f0
FLTD f1,a1
CMFE f1,f0
ADDLT a1,a1,#1
FLTD f0,a1
MOVS pc,lr
EXPORT fabs
NAME fabs
fabs
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
ABSD f0,f0
MOVS pc,lr
EXPORT floor
NAME floor
floor
STMFD sp!,{a1,a2}
LDFD f0,[sp],#8
FIXD a1,f0
FLTD f1,a1
CMFE f1,f0
SUBGT a1,a1,#1
FLTD f0,a1
MOVS pc,lr
EXPORT fmod
NAME fmod
fmod
STMFD sp!,{a1,a2,a3,a4}
LDFD f0,[sp],#8
LDFD f1,[sp],#8
RMFD f0,f0,f1
MOVS pc,lr
END