diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-08 17:29:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-08 17:29:58 +0000 |
commit | 92161ffe3f7f5280ff22337d6ed619a157a8210c (patch) | |
tree | 43628391eabc2ab9bde1d26873e73c19b34da19f | |
parent | fb76d2f5c3482bf6f14ea8c36be524996a5a62f1 (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)
-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 |