2009-07-31 18:53:35 +00:00
|
|
|
ifeq ($(subdir),csu)
|
|
|
|
aux += init-arch
|
|
|
|
gen-as-const-headers += ifunc-defines.sym
|
|
|
|
endif
|
2009-08-04 19:13:43 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),string)
|
2010-01-12 19:22:03 +00:00
|
|
|
sysdep_routines += bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 \
|
|
|
|
memmove-ssse3 memcpy-ssse3-rep mempcpy-ssse3-rep \
|
|
|
|
memmove-ssse3-rep bcopy-ssse3 bcopy-ssse3-rep \
|
2010-02-15 19:17:50 +00:00
|
|
|
memset-sse2-rep bzero-sse2-rep strcmp-ssse3 \
|
|
|
|
strcmp-sse4 strncmp-c strncmp-ssse3 strncmp-sse4 \
|
2010-08-25 17:07:37 +00:00
|
|
|
memcmp-ssse3 memcmp-sse4 strcasestr-nonascii varshift \
|
2011-06-24 18:15:32 +00:00
|
|
|
strlen-sse2 strlen-sse2-bsf strncpy-c strcpy-ssse3 \
|
|
|
|
strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3 strcpy-sse2 \
|
2011-08-04 19:33:38 +00:00
|
|
|
strncpy-sse2 stpcpy-sse2 stpncpy-sse2 strcat-ssse3 \
|
2011-09-05 17:53:27 +00:00
|
|
|
strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c \
|
2011-09-05 21:11:11 +00:00
|
|
|
strchr-sse2 strrchr-sse2 strchr-sse2-bsf strrchr-sse2-bsf \
|
2011-10-28 09:39:07 +00:00
|
|
|
memchr-sse2 memchr-sse2-bsf \
|
2011-10-12 15:42:04 +00:00
|
|
|
memrchr-sse2 memrchr-sse2-bsf memrchr-c \
|
2011-10-15 15:10:08 +00:00
|
|
|
rawmemchr-sse2 rawmemchr-sse2-bsf \
|
2011-10-28 09:39:07 +00:00
|
|
|
strnlen-sse2 strnlen-c
|
2009-08-04 19:13:43 +00:00
|
|
|
ifeq (yes,$(config-cflags-sse4))
|
|
|
|
sysdep_routines += strcspn-c strpbrk-c strspn-c strstr-c strcasestr-c
|
2010-08-28 00:11:38 +00:00
|
|
|
CFLAGS-varshift.c += -msse4
|
2009-08-04 19:13:43 +00:00
|
|
|
CFLAGS-strcspn-c.c += -msse4
|
|
|
|
CFLAGS-strpbrk-c.c += -msse4
|
|
|
|
CFLAGS-strspn-c.c += -msse4
|
|
|
|
CFLAGS-strstr.c += -msse4
|
|
|
|
CFLAGS-strcasestr.c += -msse4
|
2010-07-21 14:26:18 +00:00
|
|
|
CFLAGS-strcasestr-nonascii.c += -msse4
|
2009-08-04 19:13:43 +00:00
|
|
|
endif
|
|
|
|
endif
|
2010-04-15 05:27:59 +00:00
|
|
|
|
2011-10-28 09:39:07 +00:00
|
|
|
ifeq ($(subdir),wcsmbs)
|
|
|
|
sysdep_routines += wcscmp-sse2 wcscmp-c wcslen-sse2 wcslen-c \
|
|
|
|
wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
|
|
|
|
endif
|
|
|
|
|
2010-04-15 05:27:59 +00:00
|
|
|
ifeq (mathyes,$(subdir)$(config-cflags-avx))
|
|
|
|
libm-sysdep_routines += s_fma-fma s_fmaf-fma
|
|
|
|
CFLAGS-s_fma-fma.c += -mavx -mfpmath=sse
|
|
|
|
CFLAGS-s_fmaf-fma.c += -mavx -mfpmath=sse
|
|
|
|
endif
|