summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-22 15:08:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-22 15:08:07 +0000
commitb3a5bcb29aefc6550ff2b5288b723909363bbdc1 (patch)
treee200e4fa6404fb9a5e0430a7aca5159e6f69beaf /lib/libm
parent539a376c1005d636a9ce11e2c47b66b698ebc1db (diff)
Fix a typo and get good results in the process, fixes PR 3830 and passes
Perl's regression test; ok art@
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/arch/amd64/e_acos.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libm/arch/amd64/e_acos.S b/lib/libm/arch/amd64/e_acos.S
index 0c8f20e9a04..286edbb5e92 100644
--- a/lib/libm/arch/amd64/e_acos.S
+++ b/lib/libm/arch/amd64/e_acos.S
@@ -13,7 +13,7 @@ RCSID("$NetBSD: e_acos.S,v 1.8 2003/07/26 19:24:57 salo Exp $")
ENTRY(__ieee754_acos)
XMM_ONE_ARG_DOUBLE_PROLOGUE
fldl ARG_DOUBLE_ONE /* x */
- fld %st(1)
+ fld %st(0)
fmul %st(0) /* x^2 */
fld1
fsubp /* 1 - x^2 */