Date: Fri, 15 Sep 2006 07:38:26 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 106140 for review Message-ID: <200609150738.k8F7cQKG043279@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106140 Change 106140 by imp@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609150738.k8F7cQKG043279>