This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Improve rawmemchr implementation.


Hi,

I looked to rawmemchr implementation and it can be improved by using
similar header that is used in strchr. A loop itself was well optimized
so we only gain around 20 cycles per call for sizes from 64 bytes.

Results at show it that this is improvement for unit tests but I did not
find program that calls rawmemchr yet.
http://kam.mff.cuni.cz/~ondra/benchmark_string/rawmemchr_profile.html
A benchmark is at
http://kam.mff.cuni.cz/~ondra/benchmark_string/rawmemchr_profile160813.tar.bz2

Passes test, OK to commit?

	* sysdeps/x86_64/rawmemchr.S (rawmemchr): Optimize implementation.

---


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]