PERFORCE change 106140 for review
Warner Losh
imp at FreeBSD.org
Fri Sep 15 00:38:27 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=106140
Change 106140 by imp at imp_lighthouse on 2006/09/15 07:37:25
Break p_strlen out of p_string to save another 24 bytes per
boot loader (except bootiic).
Affected files ...
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/Makefile#21 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/p_string.c#12 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/strlen.c#1 add
Differences ...
==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/Makefile#21 (text+ko) ====
@@ -6,7 +6,7 @@
INTERNALLIB=
SRCS=at91rm9200_lowlevel.c delay.c eeprom.c emac.c emac_init.c fpga.c getc.c \
p_string.c putchar.c printf.c reset.c spi_flash.c xmodem.c \
- sd-card.c mci_device.c strcvt.c
+ sd-card.c mci_device.c strcvt.c strlen.c
SRCS+=ashldi3.c divsi3.S
NO_MAN=
==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/p_string.c#12 (text+ko) ====
@@ -39,24 +39,6 @@
*buffer++ = value;
}
-
-/*
- * .KB_C_FN_DEFINITION_START
- * int p_strlen(char *)
- * This global function returns the number of bytes starting at the pointer
- * before (not including) the string termination character ('/0').
- * .KB_C_FN_DEFINITION_END
- */
-int
-p_strlen(const char *buffer)
-{
- const char *ptr = buffer;
- while (*ptr++)
- continue;
- return (ptr - buffer);
-}
-
-
/*
* .KB_C_FN_DEFINITION_START
* char *p_strcpy(char *to, char *from)
More information about the p4-projects
mailing list