projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97721a5
)
use alternate formula for acos asm to avoid loss of precision
author
Rich Felker
<dalias@aerifal.cx>
Tue, 20 Mar 2012 03:08:49 +0000
(23:08 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 20 Mar 2012 03:08:49 +0000
(23:08 -0400)
src/math/i386/acos.s
patch
|
blob
|
history
diff --git
a/src/math/i386/acos.s
b/src/math/i386/acos.s
index 6f9ef7f0e37ada36bc53e9b37a3c1d234f528be6..4f0168f623d1f0294324b286ad90e2e9d2c46785 100644
(file)
--- 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)
- f
mul %st(0
)
+1: fld
1
+ f
ld %st(1
)
fld1
- fsubp %st(1)
+ fsubp
+ fxch %st(2)
+ faddp
+ fdivp
fsqrt
+ fld1
fxch %st(1)
fpatan
+ fld1
+ fld1
+ faddp
+ fmulp
ret