Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa Don't use C versions of memcmp, memcpy, memmov...



details:   https://anonhg.NetBSD.org/src/rev/a73dacf9c972
branches:  trunk
changeset: 766136:a73dacf9c972
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jun 16 16:47:53 2011 +0000

description:
Don't use C versions of memcmp, memcpy, memmove, memset and strchr
on x86 for standalone code. The assembler versions are much smaller.

diffstat:

 sys/lib/libsa/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 075379d5a4ae -r a73dacf9c972 sys/lib/libsa/Makefile
--- a/sys/lib/libsa/Makefile    Thu Jun 16 16:39:53 2011 +0000
+++ b/sys/lib/libsa/Makefile    Thu Jun 16 16:47:53 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.72 2011/05/11 16:23:40 zoltan Exp $
+#      $NetBSD: Makefile,v 1.73 2011/06/16 16:47:53 joerg Exp $
 
 LIB=   sa
 NOPIC= # defined
@@ -33,7 +33,9 @@
 .endif
 
 # string routines
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
 SRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c
+.endif
 SRCS+= bcopy.c bzero.c # Remove me eventually.
 
 # io routines



Home | Main Index | Thread Index | Old Index