about summary refs log tree commit diff
path: root/wcsmbs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-09-05 13:53:27 -0400
committerUlrich Drepper <drepper@gmail.com>2011-09-05 13:53:27 -0400
commit1b48c537821e27cf9b9c489e8773ba1d84f97b3e (patch)
tree586551f091846a97ec5102994e2111b3f4651c5e /wcsmbs
parent109715ee229b0ddff1d0d2585f910bb4fd49a61c (diff)
downloadglibc-1b48c537821e27cf9b9c489e8773ba1d84f97b3e.tar.gz
glibc-1b48c537821e27cf9b9c489e8773ba1d84f97b3e.tar.xz
glibc-1b48c537821e27cf9b9c489e8773ba1d84f97b3e.zip
Add x86-32 optimized wcscmp
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wcscmp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wcsmbs/wcscmp.c b/wcsmbs/wcscmp.c
index 8241c67f9b..6c93f702f6 100644
--- a/wcsmbs/wcscmp.c
+++ b/wcsmbs/wcscmp.c
@@ -19,12 +19,15 @@
 
 #include <wchar.h>
 
+#ifndef WCSCMP
+# define WCSCMP wcscmp
+#endif
 
 /* Compare S1 and S2, returning less than, equal to or
    greater than zero if S1 is lexicographically less than,
    equal to or greater than S2.	 */
 int
-wcscmp (s1, s2)
+WCSCMP (s1, s2)
      const wchar_t *s1;
      const wchar_t *s2;
 {
@@ -41,4 +44,4 @@ wcscmp (s1, s2)
 
   return c1 - c2;
 }
-libc_hidden_def (wcscmp)
+libc_hidden_def (WCSCMP)