summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-12-14 19:15:27 +0000
committerphk <phk@FreeBSD.org>2002-12-14 19:15:27 +0000
commit6a31ca3bbad2335d31231e96245cd3e95492ffd4 (patch)
treed10ae087c782b2ffb181c36544bd1993fe014090 /sys/boot
parent98d11df0960616dc4c40169c9fafccbc00daa4a3 (diff)
downloadFreeBSD-src-6a31ca3bbad2335d31231e96245cd3e95492ffd4.zip
FreeBSD-src-6a31ca3bbad2335d31231e96245cd3e95492ffd4.tar.gz
Always use the smaller GCC builtin memcpy
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/boot2/boot2.c10
-rw-r--r--sys/boot/i386/gptboot/gptboot.c10
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c
index 3d2fafe..275aa66 100644
--- a/sys/boot/i386/boot2/boot2.c
+++ b/sys/boot/i386/boot2/boot2.c
@@ -129,17 +129,7 @@ static int xputc(int);
static int xgetc(int);
static int getc(int);
-#if 1
#define memcpy __builtin_memcpy
-#else
-static void memcpy(char *, const char *, int);
-static void
-memcpy(char *dst, const char *src, int len)
-{
- while (len--)
- *dst++ = *src++;
-}
-#endif
static inline int
strcmp(const char *s1, const char *s2)
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index 3d2fafe..275aa66 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -129,17 +129,7 @@ static int xputc(int);
static int xgetc(int);
static int getc(int);
-#if 1
#define memcpy __builtin_memcpy
-#else
-static void memcpy(char *, const char *, int);
-static void
-memcpy(char *dst, const char *src, int len)
-{
- while (len--)
- *dst++ = *src++;
-}
-#endif
static inline int
strcmp(const char *s1, const char *s2)
OpenPOWER on IntegriCloud