Skip to content

Commit

Permalink
Add x86-32 optimized wcscmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Sep 5, 2011
1 parent 109715e commit 1b48c53
Show file tree
Hide file tree
Showing 7 changed files with 1,090 additions and 4 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2011-08-29 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>

* sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
wcscmp-c wcscmp-sse2
* sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
* sysdeps/i386/i686/multiarch/wcscmp.S: New file.
* sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
* wcsmbs/wcscmp.c: Allow renaming.

2011-09-05 David S. Miller <davem@davemloft.net>

* sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Version 2.15
* Improved strcpy, strncpy, stpcpy, stpncpy for SSE2 and SSSE3 on x86-64.
Contributed by HJ Lu.

* Optimized strcat and strncat on x86-64.
* Optimized strcat and strncat on x86-64 and optimized wcscmp on x86-32.
Contributed by Liubov Dmitrieva.

* New interfaces: scandirat, scandirat64
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/i386/i686/multiarch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ sysdep_routines += bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 \
strlen-sse2 strlen-sse2-bsf strncpy-c strcpy-ssse3 \
strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3 strcpy-sse2 \
strncpy-sse2 stpcpy-sse2 stpncpy-sse2 strcat-ssse3 \
strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c
strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c \
wcscmp-sse2 wcscmp-c
ifeq (yes,$(config-cflags-sse4))
sysdep_routines += strcspn-c strpbrk-c strspn-c strstr-c strcasestr-c
CFLAGS-varshift.c += -msse4
Expand Down
11 changes: 11 additions & 0 deletions sysdeps/i386/i686/multiarch/wcscmp-c.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef NOT_IN_libc

# define WCSCMP __wcscmp_ia32

# undef libc_hidden_def
# define libc_hidden_def(name) \
__hidden_ver1 (__wcscmp_ia32, __GI_wcscmp, __wcscmp_ia32);
#endif

#include "wcsmbs/wcscmp.c"

Loading

0 comments on commit 1b48c53

Please sign in to comment.