summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-20 04:09:14 +0100
committernsz <nsz@port70.net>2012-03-20 04:09:14 +0100
commitc879a9592f09a49c1807ee95d4305c406f44882e (patch)
treeb2179b38c3588def9b27c5fcd3c650043af15b3d /src/math
parent0b0735af457e599a26a5f82f9e4615c60deac161 (diff)
parent804fbf0b8c00fd4e2f37ef0769a610614d06138f (diff)
downloadmusl-c879a9592f09a49c1807ee95d4305c406f44882e.tar.gz
Merge branch 'master' of git://git.etalabs.net/musl
Diffstat (limited to 'src/math')
-rw-r--r--src/math/i386/acos.s14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/math/i386/acos.s b/src/math/i386/acos.s
index 6f9ef7f0..4f0168f6 100644
--- a/src/math/i386/acos.s
+++ b/src/math/i386/acos.s
@@ -14,11 +14,19 @@ acosl:
.type acos,@function
acos:
fldl 4(%esp)
-1: fld %st(0)
- fmul %st(0)
+1: fld1
+ fld %st(1)
fld1
- fsubp %st(1)
+ fsubp
+ fxch %st(2)
+ faddp
+ fdivp
fsqrt
+ fld1
fxch %st(1)
fpatan
+ fld1
+ fld1
+ faddp
+ fmulp
ret