aboutsummaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-25 11:01:20 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-28 06:02:43 -0700
commit9db00f75ae25af0c043de52786739dcdf52e53f5 (patch)
tree8d3c997193fb15f72012cb454125e5c55ff77985 /Rules
parente05a252da92a4dd15d4be40a855d31bd864804e9 (diff)
downloadglibc-hjl/unaligned.zip
glibc-hjl/unaligned.tar.gz
glibc-hjl/unaligned.tar.bz2
Make strcmp with unaligned load/store the defaulthjl/unaligned
Since strcmp_sse2_unaligned performs better on current Intel and AMD processors, this patch makes it the default. * sysdeps/x86_64/strcmp.S: Moved to ... * sysdeps/x86_64/multiarch/strcmp-sse2.S: Here. Remove "#if !IS_IN (libc)". Remove libc_hidden_builtin_def (STRCMP). (STRCMP): Defined to __strcmp_sse2 if not defined. * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Moved to ... * sysdeps/x86_64/strcmp.S: Here. Remove "#if IS_IN (libc)". Add .text. Add libc_hidden_builtin_def (strcmp). (__strcmp_sse2_unaligned): Renamed to ... (strcmp): This. * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add strcmp-sse2. * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: Include strcmp-sse2.S instead of ../strcmp.S. * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/strcmp.S [USE_AS_STRCMP] (STRCMP_SSE2): Set to __strcmp_sse2_unaligned. [USE_AS_STRCMP] (STRCMP): Load __strcmp_sse2 instead of STRCMP_SSE2. [USE_AS_STRCMP] (strcmp): Defined __strcmp_sse2_unaligned if in libc. [!USE_AS_STRCMP]: Include strcmp-sse2S instead of ../strcmp.S. * sysdeps/x86_64/strcasecmp_l.S: Include multiarch/strcmp-sse2.S instead of strcmp.S. Add libc_hidden_builtin_def (STRCMP). * sysdeps/x86_64/strncase_l.S: Likewise. * sysdeps/x86_64/strncmp.S: Likewise.
Diffstat (limited to 'Rules')
0 files changed, 0 insertions, 0 deletions