diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-07-20 21:06:50 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-07-20 21:06:50 -0700 |
commit | 2b7a8664fa86a182c053b6743f36a5ea8bf6bf6f (patch) | |
tree | 0f7562c05a52ebf1045f02ed2e3dadc94aea5d90 /sysdeps/x86_64/multiarch/Makefile | |
parent | 63fbc91bec5623ab002c6e3ae1f3cd08a5f010fd (diff) | |
download | glibc-2b7a8664fa86a182c053b6743f36a5ea8bf6bf6f.tar.gz glibc-2b7a8664fa86a182c053b6743f36a5ea8bf6bf6f.tar.xz glibc-2b7a8664fa86a182c053b6743f36a5ea8bf6bf6f.zip |
SSE4.2 strstr/strcasestr for x86-64.
This patch implements SSE4.2 strstr/strcasestr, using Knuth-Morris-Pratt string searching algorithm.
Diffstat (limited to 'sysdeps/x86_64/multiarch/Makefile')
-rw-r--r-- | sysdeps/x86_64/multiarch/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/Makefile b/sysdeps/x86_64/multiarch/Makefile index 71e85f0652..5ce14aad8d 100644 --- a/sysdeps/x86_64/multiarch/Makefile +++ b/sysdeps/x86_64/multiarch/Makefile @@ -6,9 +6,11 @@ endif ifeq ($(subdir),string) sysdep_routines += stpncpy-c strncpy-c strncmp-c ifeq (yes,$(config-cflags-sse4)) -sysdep_routines += strcspn-c strpbrk-c strspn-c +sysdep_routines += strcspn-c strpbrk-c strspn-c strstr-c strcasestr-c CFLAGS-strcspn-c.c += -msse4 CFLAGS-strpbrk-c.c += -msse4 CFLAGS-strspn-c.c += -msse4 +CFLAGS-strstr.c += -msse4 +CFLAGS-strcasestr.c += -msse4 endif endif |