use alternate formula for acos asm to avoid loss of precision
[musl] / src / math / i386 / acos.s
1 .global acosf
2 .type acosf,@function
3 acosf:
4         flds 4(%esp)
5         jmp 1f
6
7 .global acosl
8 .type acosl,@function
9 acosl:
10         fldt 4(%esp)
11         jmp 1f
12
13 .global acos
14 .type acos,@function
15 acos:
16         fldl 4(%esp)
17 1:      fld1
18         fld %st(1)
19         fld1
20         fsubp
21         fxch %st(2)
22         faddp
23         fdivp
24         fsqrt
25         fld1
26         fxch %st(1)
27         fpatan
28         fld1
29         fld1
30         faddp
31         fmulp
32         ret