src/newlib ChangeLog libc/string/strlen.c libc ...

jjohnstn@sourceware.org jjohnstn@sourceware.org
Mon May 26 22:56:00 GMT 2008


CVSROOT:	/cvs/src
Module name:	src
Changes by:	jjohnstn@sourceware.org	2008-05-26 22:56:14

Modified files:
	newlib         : ChangeLog 
	newlib/libc/string: strlen.c 
	newlib/libc/machine/i386: strlen.S 

Log message:
	2008-05-26  Eric Blake  <ebb9@byu.net>
	
	Optimize the generic and x86 strlen.
	* libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
	data so unaligned searches aren't penalized.
	* libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
	Word operations are faster than repnz byte searches.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1158&r2=1.1159
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/string/strlen.c.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/machine/i386/strlen.S.diff?cvsroot=src&r1=1.3&r2=1.4



More information about the Newlib-cvs mailing list