use alternate formula for acos asm to avoid loss of precision
This commit is contained in:
parent
97721a5508
commit
804fbf0b8c
1 changed files with 11 additions and 3 deletions
|
|
@ -14,11 +14,19 @@ acosl:
|
||||||
.type acos,@function
|
.type acos,@function
|
||||||
acos:
|
acos:
|
||||||
fldl 4(%esp)
|
fldl 4(%esp)
|
||||||
1: fld %st(0)
|
1: fld1
|
||||||
fmul %st(0)
|
fld %st(1)
|
||||||
fld1
|
fld1
|
||||||
fsubp %st(1)
|
fsubp
|
||||||
|
fxch %st(2)
|
||||||
|
faddp
|
||||||
|
fdivp
|
||||||
fsqrt
|
fsqrt
|
||||||
|
fld1
|
||||||
fxch %st(1)
|
fxch %st(1)
|
||||||
fpatan
|
fpatan
|
||||||
|
fld1
|
||||||
|
fld1
|
||||||
|
faddp
|
||||||
|
fmulp
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue