PATCH: Improve 32 bit strchr and strrchr functions with SSE2

Dmitrieva Liubov liubov.dmitrieva@gmail.com
Mon Aug 8 18:57:00 GMT 2011


Hello,

This patch improves strchr and strrchr for IA 32 bit with SSE2 (two
versions: with bsf, bsr instructions, without bsf, bsr instructions
(good on atom) ).
Tested on core i7, core 2, atom.

It improves performance by up to 6.5 X for strrchr and 7.5 X for strchr.


--
Liubov Dmitrieva
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strchr_strrchr_32_bit.patch
Type: application/octet-stream
Size: 34255 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110808/db7edc8b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog.strchr_strrchr_32
Type: application/octet-stream
Size: 521 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110808/db7edc8b/attachment-0001.obj>


More information about the Libc-alpha mailing list