PATCH: [x86_32] New implementations in assembly codes of strnlen and wcslen.
Dmitrieva Liubov
liubov.dmitrieva@gmail.com
Fri Oct 21 13:34:00 GMT 2011
Hello,
This patch suggests optimized with SSE2 strnlen and wcslen for all
x86_32 machines with SSE2 support. It improves performance by up to
18X for strnlen and by up to 4X for wcslen.
Change Log:
2011-10-21 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
strnlen-sse2-no-bsf.
Rename strlen-no-bsf to strlen-sse2-no-bsf.
* sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
* sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
Add strnlen support.
(USE_AS_STRNLEN): New macro.
* sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
* sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
* sysdeps/x86_64/wcslen.S: New file.
--
Liubov Dmitrieva
Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strnlen_wcslen_32.patch
Type: application/octet-stream
Size: 21354 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20111021/7da3ef9e/attachment.obj>
More information about the Libc-alpha
mailing list