diff options
author | 2004-02-08 17:29:57 +0000 | |
---|---|---|
committer | 2004-02-08 17:29:57 +0000 | |
commit | f849b431dcc5af9f0801fb81773b7ac636ceebaf (patch) | |
tree | c36fab565ac7e21b025923f4426268ec7ab5c4f8 /lib/libc/arch | |
parent | from freebsd (and appears to make our awk work better) (diff) | |
download | wireguard-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.S | 4 | ||||
-rw-r--r-- | lib/libc/arch/x86_64/gen/fabs.S | 4 |
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 |