From 73507d3ae077c2dcf0da857a5a244deff3d4d223 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 31 Jul 2010 21:41:09 -0700 Subject: Add support for SSSE3 and SSE4.2 versions of strcasecmp on x86-64. --- sysdeps/x86_64/strcmp.S | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sysdeps/x86_64/strcmp.S') diff --git a/sysdeps/x86_64/strcmp.S b/sysdeps/x86_64/strcmp.S index 7b2b246866..d36fef225b 100644 --- a/sysdeps/x86_64/strcmp.S +++ b/sysdeps/x86_64/strcmp.S @@ -74,15 +74,24 @@ #endif #ifdef USE_AS_STRCASECMP_L -ENTRY (__strcasecmp) +# ifndef ENTRY2 +# define ENTRY2(name) ENTRY (name) +# define END2(name) END (name) +# define NO_NOLOCALE_ALIAS +# endif + + ENTRY2 (__strcasecmp) movq __libc_tsd_LOCALE@gottpoff(%rip),%rax movq %fs:(%rax),%rdx + // XXX 5 byte should be before the function /* 5-byte NOP. */ .byte 0x0f,0x1f,0x44,0x00,0x00 -END (__strcasecmp) +END2 (__strcasecmp) +# ifndef NO_NOLOCALE_ALIAS weak_alias (__strcasecmp, strcasecmp) libc_hidden_def (__strcasecmp) +# endif /* FALLTHROUGH to strcasecmp_l. */ #endif -- cgit 1.4.1