summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-08 17:29:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-08 17:29:58 +0000
commit92161ffe3f7f5280ff22337d6ed619a157a8210c (patch)
tree43628391eabc2ab9bde1d26873e73c19b34da19f /lib
parentfb76d2f5c3482bf6f14ea8c36be524996a5a62f1 (diff)
from freebsd, helps awk too:
Fix fabs(). This commit brought to you by the letter 'l'. (fstp stores a mem32 value, fstpl stores a mem64 value)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/amd64/gen/fabs.S4
-rw-r--r--lib/libc/arch/x86_64/gen/fabs.S4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arch/amd64/gen/fabs.S b/lib/libc/arch/amd64/gen/fabs.S
index b94e862c1e9..ab31ac612fb 100644
--- a/lib/libc/arch/amd64/gen/fabs.S
+++ b/lib/libc/arch/amd64/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: fabs.S,v 1.2 2004/02/08 17:29:57 deraadt Exp $ */
/* $NetBSD: fabs.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */
#include <machine/asm.h>
@@ -12,6 +12,6 @@ ENTRY(fabs)
movsd %xmm0, -8(%rsp)
fldl -8(%rsp)
fabs
- fstp -8(%rsp)
+ fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
diff --git a/lib/libc/arch/x86_64/gen/fabs.S b/lib/libc/arch/x86_64/gen/fabs.S
index b94e862c1e9..ab31ac612fb 100644
--- a/lib/libc/arch/x86_64/gen/fabs.S
+++ b/lib/libc/arch/x86_64/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: fabs.S,v 1.2 2004/02/08 17:29:57 deraadt Exp $ */
/* $NetBSD: fabs.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */
#include <machine/asm.h>
@@ -12,6 +12,6 @@ ENTRY(fabs)
movsd %xmm0, -8(%rsp)
fldl -8(%rsp)
fabs
- fstp -8(%rsp)
+ fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret