From bc33e617040166e971ec1e6822ac1cc417eb6c9c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 19 Mar 2012 04:56:07 -0400 Subject: 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. --- src/math/i386/atanf.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/math/i386/atanf.s (limited to 'src/math/i386/atanf.s') diff --git a/src/math/i386/atanf.s b/src/math/i386/atanf.s new file mode 100644 index 00000000..3cd40233 --- /dev/null +++ b/src/math/i386/atanf.s @@ -0,0 +1,7 @@ +.global atanf +.type atanf,@function +atanf: + flds 4(%esp) + fld1 + fpatan + ret -- cgit v1.2.1