acos.s fix: use the formula acos(x) = atan2(sqrt(1-x),sqrt(1+x))
[musl] / src / math / x86_64 / acosl.s
1 .global acosl
2 .type acosl,@function
3 acosl:
4         fldt 8(%rsp)
5         fld1
6         fld %st(1)
7         fld1
8         fsubp
9         fsqrt
10         fxch %st(2)
11         faddp
12         fsqrt
13         fpatan
14         fld1
15         fld1
16         faddp
17         fmulp
18         ret