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/atan2.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/math/i386/atan2.s (limited to 'src/math/i386/atan2.s') diff --git a/src/math/i386/atan2.s b/src/math/i386/atan2.s new file mode 100644 index 00000000..5c795aff --- /dev/null +++ b/src/math/i386/atan2.s @@ -0,0 +1,7 @@ +.global atan2 +.type atan2,@function +atan2: + fldl 4(%esp) + fldl 12(%esp) + fpatan + ret -- cgit v1.2.1