mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-12 12:07:12 +08:00
2b7a8664fa
This patch implements SSE4.2 strstr/strcasestr, using Knuth-Morris-Pratt string searching algorithm.
17 lines
417 B
Makefile
17 lines
417 B
Makefile
ifeq ($(subdir),csu)
|
|
aux += init-arch
|
|
gen-as-const-headers += ifunc-defines.sym
|
|
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 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
|