Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Move AMD64's bswap64 implementation from libc to src/common ...
details: https://anonhg.NetBSD.org/src/rev/844fa0fe4c0d
branches: trunk
changeset: 750775:844fa0fe4c0d
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jan 14 02:09:46 2010 +0000
description:
Move AMD64's bswap64 implementation from libc to src/common and share it
with the kernel.
diffstat:
common/lib/libc/arch/x86_64/gen/byte_swap_8.S | 17 +++++++++++++++++
lib/libc/arch/x86_64/gen/Makefile.inc | 4 ++--
lib/libc/arch/x86_64/gen/bswap64.S | 17 -----------------
sys/lib/libkern/arch/x86_64/Makefile.inc | 4 ++--
4 files changed, 21 insertions(+), 21 deletions(-)
diffs (67 lines):
diff -r 9bc7a5a00902 -r 844fa0fe4c0d common/lib/libc/arch/x86_64/gen/byte_swap_8.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/common/lib/libc/arch/x86_64/gen/byte_swap_8.S Thu Jan 14 02:09:46 2010 +0000
@@ -0,0 +1,17 @@
+/* $NetBSD: byte_swap_8.S,v 1.1 2010/01/14 02:09:46 joerg Exp $ */
+
+/*
+ * Written by Frank van der Linden (fvdl%wasabisystems.com@localhost)
+ * Public Domain.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS)
+ RCSID("$NetBSD: byte_swap_8.S,v 1.1 2010/01/14 02:09:46 joerg Exp $")
+#endif
+
+ENTRY(bswap64)
+ bswapq %rdi
+ movq %rdi,%rax
+ ret
diff -r 9bc7a5a00902 -r 844fa0fe4c0d lib/libc/arch/x86_64/gen/Makefile.inc
--- a/lib/libc/arch/x86_64/gen/Makefile.inc Thu Jan 14 02:06:04 2010 +0000
+++ b/lib/libc/arch/x86_64/gen/Makefile.inc Thu Jan 14 02:09:46 2010 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile.inc,v 1.14 2009/12/06 07:12:18 uebayasi Exp $
+# $NetBSD: Makefile.inc,v 1.15 2010/01/14 02:09:46 joerg Exp $
# objects built from assembler sources (need lint stubs)
-SRCS+= alloca.S bswap64.S byte_swap_2.S byte_swap_4.S fabs.S \
+SRCS+= alloca.S byte_swap_2.S byte_swap_4.S byte_swap_8.S fabs.S \
flt_rounds.S fpgetmask.S fpgetround.S fpgetsticky.S \
fpsetmask.S fpsetround.S fpsetsticky.S
diff -r 9bc7a5a00902 -r 844fa0fe4c0d lib/libc/arch/x86_64/gen/bswap64.S
--- a/lib/libc/arch/x86_64/gen/bswap64.S Thu Jan 14 02:06:04 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-/* $NetBSD: bswap64.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */
-
-/*
- * Written by Frank van der Linden (fvdl%wasabisystems.com@localhost)
- * Public Domain.
- */
-
-#include <machine/asm.h>
-
-#if defined(LIBC_SCCS)
- RCSID("$NetBSD: bswap64.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $")
-#endif
-
-ENTRY(bswap64)
- bswapq %rdi
- movq %rdi,%rax
- ret
diff -r 9bc7a5a00902 -r 844fa0fe4c0d sys/lib/libkern/arch/x86_64/Makefile.inc
--- a/sys/lib/libkern/arch/x86_64/Makefile.inc Thu Jan 14 02:06:04 2010 +0000
+++ b/sys/lib/libkern/arch/x86_64/Makefile.inc Thu Jan 14 02:09:46 2010 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.inc,v 1.5 2009/08/14 19:23:55 dsl Exp $
+# $NetBSD: Makefile.inc,v 1.6 2010/01/14 02:09:46 joerg Exp $
-SRCS+= byte_swap_2.S byte_swap_4.S
+SRCS+= byte_swap_2.S byte_swap_4.S byte_swap_8.S
SRCS+= ffs.S
SRCS+= memchr.S memcmp.S memcpy.S memmove.S memset.S
SRCS+= strcat.S strchr.S strcmp.S
Home |
Main Index |
Thread Index |
Old Index