fix excess precision in return value of i386 acos[f] and asin[f]
[oweals/musl.git] / src / math / i386 / acosf.s
1 .global acosf
2 .type acosf,@function
3 acosf:
4         flds 4(%esp)
5         fld %st(0)
6         fld1
7         fsub %st(0),%st(1)
8         fadd %st(2)
9         fmulp
10         fsqrt
11         fabs         # fix sign of zero (matters in downward rounding mode)
12         fxch %st(1)
13         fpatan
14         fstps 4(%esp)
15         flds 4(%esp)
16         ret