diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-03-19 04:56:07 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-03-19 04:56:07 -0400 |
commit | bc33e617040166e971ec1e6822ac1cc417eb6c9c (patch) | |
tree | 984dfc67487f0759fa5cceca0e9e53e28ad05b99 /src/math/i386/atan.s | |
parent | 495a52ae7bb581aac2942d7cb095cca2ff53ca3c (diff) | |
download | musl-bc33e617040166e971ec1e6822ac1cc417eb6c9c.tar.gz musl-bc33e617040166e971ec1e6822ac1cc417eb6c9c.tar.bz2 musl-bc33e617040166e971ec1e6822ac1cc417eb6c9c.tar.xz musl-bc33e617040166e971ec1e6822ac1cc417eb6c9c.zip |
asm for inverse trig functions
unlike trig functions, these are easy to do in asm because they do not
involve (arbitrary-precision) argument reduction. fpatan automatically
takes care of domain issues, and in asin and acos, fsqrt takes care of
them for us.
Diffstat (limited to 'src/math/i386/atan.s')
-rw-r--r-- | src/math/i386/atan.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/i386/atan.s b/src/math/i386/atan.s new file mode 100644 index 00000000..7e28b395 --- /dev/null +++ b/src/math/i386/atan.s @@ -0,0 +1,7 @@ +.global atan +.type atan,@function +atan: + fldl 4(%esp) + fld1 + fpatan + ret |