about summary refs log tree commit diff
path: root/sysdeps/i386/i686/multiarch/strncase_l-c.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-11-13 09:50:13 -0500
committerUlrich Drepper <drepper@gmail.com>2011-11-13 09:50:13 -0500
commit76e3966e9efc3808a9e7ad09121c5dfc1211c20b (patch)
tree7750f566972dcf12742c3881b5ca3a12cd3a6c49 /sysdeps/i386/i686/multiarch/strncase_l-c.c
parent7edb22eff50b957c5b40815d0974639db19f5870 (diff)
downloadglibc-76e3966e9efc3808a9e7ad09121c5dfc1211c20b.tar.gz
glibc-76e3966e9efc3808a9e7ad09121c5dfc1211c20b.tar.xz
glibc-76e3966e9efc3808a9e7ad09121c5dfc1211c20b.zip
SSSE3 optimized strcasecmp and strncasecmp for x86-32
Diffstat (limited to 'sysdeps/i386/i686/multiarch/strncase_l-c.c')
-rw-r--r--sysdeps/i386/i686/multiarch/strncase_l-c.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/multiarch/strncase_l-c.c b/sysdeps/i386/i686/multiarch/strncase_l-c.c
new file mode 100644
index 0000000000..0c68b8d1cb
--- /dev/null
+++ b/sysdeps/i386/i686/multiarch/strncase_l-c.c
@@ -0,0 +1,11 @@
+#include <string.h>
+
+extern __typeof (strncasecmp_l) __strncasecmp_l_nonascii;
+
+#define __strncasecmp_l __strncasecmp_l_nonascii
+#define USE_IN_EXTENDED_LOCALE_MODEL    1
+#include <string/strncase.c>
+
+/* The needs of strcasecmp in libc are minimal, no need to go through
+   the IFUNC.  */
+strong_alias (__strncasecmp_l_nonascii, __GI___strncasecmp_l)