This is the mail archive of the 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]

Repost PATCH: Improve wcschr, wcsrchr, wcscpy for x86_64 and x86_32.

This is repost of old patches with optimized wcschr (with SSE2),
wcsrchr (with SSE2), wcscpy (with SSSE3) and its tests.
Please, can you review it.

I've run "make check" again today and checked it can be merged without

2011-12-12  Liubov Dmitrieva  <>

	* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
	wcscpy-ssse3 wcscpy-c.

	* sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
	* sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
	* sysdeps/x86_64/multiarch/wcscpy.S: New file.

	* sysdeps/x86_64/wcschr.S: New file.
	* sysdeps/x86_64/wcsrchr.S: New file.
	* string/test-strcmp.c: Update.
	Remove checking of wcscmp function for
	wrong alignments.

	* sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
	wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
	wcsrchr-sse2 wcsrchr-c

	* sysdeps/i386/i686/multiarch/wcschr.S: New file.
	* sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
	* sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.

	* sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
	* sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
	* sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.

	* sysdeps/i386/i686/multiarch/wcscpy.S: New file.
	* sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
	* sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.

	* wcsmbc/wcschr.c
	(WCSCHR): New macro.

	* wcsmbs/Makefile
	(strop-tests): Add wcsrchr wcscpy.

	* wcsmbs/test-wcsrchr.c: New file.
	* string/test-strrchr.c: Update.
	Add wcsrchr support.
	(WIDE): New macro.

	* wcsmbs/test-wcscpy.c: New file.
	* string/test-strcpy.c: Update.
	Add wcscpy support.
	(WIDE): New macro.



Liubov Dmitrieva
Intel Corporation

Attachment: wcschr_wcsrchr_wcscpy.patch
Description: Binary data

Attachment: ChangeLog.wcscpy_wcschr_wcsrchr
Description: Binary data

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