This is the mail archive of the
newlib-cvs@sourceware.org
mailing list for the newlib project.
src/newlib ChangeLog libc/string/memchr.c libc ...
- From: jjohnstn at sourceware dot org
- To: newlib-cvs at sourceware dot org
- Date: 26 May 2008 23:31:08 -0000
- Subject: src/newlib ChangeLog libc/string/memchr.c libc ...
CVSROOT: /cvs/src
Module name: src
Changes by: jjohnstn@sourceware.org 2008-05-26 23:31:08
Modified files:
newlib : ChangeLog
newlib/libc/string: memchr.c
newlib/libc/machine/i386: memchr.S
Log message:
2008-05-26 Eric Blake <ebb9@byu.net>
Optimize the generic and x86 memchr.
* libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned searches aren't penalized.
* libc/machine/i386/memchr.S (memchr) [!__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.1160&r2=1.1161
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/string/memchr.c.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/machine/i386/memchr.S.diff?cvsroot=src&r1=1.3&r2=1.4