summaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorLiubov Dmitrieva <liubov.dmitrieva@gmail.com>2011-10-12 11:42:04 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-12 11:42:04 -0400
commit951fbcec70e65c49705fcdbf4630bee5ce2a5691 (patch)
tree33fa5a0729ad3f67f693290d450b42a1a431f5ea /string
parent0ac5ae2335292908f39031b1ea9fe8edce433c0f (diff)
downloadglibc-951fbcec70e65c49705fcdbf4630bee5ce2a5691.tar.gz
Optimized memchr, memrchr, rawmemchr for x86-32
Diffstat (limited to 'string')
-rw-r--r--string/memrchr.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/string/memrchr.c b/string/memrchr.c
index 21662b1bd7..498a4376ea 100644
--- a/string/memrchr.c
+++ b/string/memrchr.c
@@ -63,7 +63,12 @@
/* Search no more than N bytes of S for C. */
__ptr_t
-__memrchr (s, c_in, n)
+#ifndef MEMRCHR
+__memrchr
+#else
+MEMRCHR
+#endif
+ (s, c_in, n)
const __ptr_t s;
int c_in;
size_t n;
@@ -205,6 +210,8 @@ __memrchr (s, c_in, n)
return 0;
}
-#ifdef weak_alias
+#ifndef MEMRCHR
+# ifdef weak_alias
weak_alias (__memrchr, memrchr)
+# endif
#endif