summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-02-08 17:29:57 +0000
committerderaadt <deraadt@openbsd.org>2004-02-08 17:29:57 +0000
commitf849b431dcc5af9f0801fb81773b7ac636ceebaf (patch)
treec36fab565ac7e21b025923f4426268ec7ab5c4f8 /lib/libc/arch
parentfrom freebsd (and appears to make our awk work better) (diff)
downloadwireguard-openbsd-f849b431dcc5af9f0801fb81773b7ac636ceebaf.tar.xz
wireguard-openbsd-f849b431dcc5af9f0801fb81773b7ac636ceebaf.zip
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/libc/arch')
-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