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: [x86_32] New implementations in assembly codes of strnlen and wcslen.


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

Attachment: strnlen_wcslen_32.patch
Description: Binary data


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