about summary refs log tree commit diff
path: root/sysdeps/i386/i686/multiarch/strnlen-c.c
diff options
context:
space:
mode:
authorLiubov Dmitrieva <liubov.dmitrieva@gmail.com>2011-10-23 15:17:23 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-23 15:17:23 -0400
commitfc2ee42abe595bbf6b8bbf0637648ad8b5d4faab (patch)
treed8083a4d8e42366a82963d3525140c53fbb49ede /sysdeps/i386/i686/multiarch/strnlen-c.c
parent09229f3e1b617d9dcfa3227f32bb72436d7fcac4 (diff)
downloadglibc-fc2ee42abe595bbf6b8bbf0637648ad8b5d4faab.tar.gz
glibc-fc2ee42abe595bbf6b8bbf0637648ad8b5d4faab.tar.xz
glibc-fc2ee42abe595bbf6b8bbf0637648ad8b5d4faab.zip
Add optimized wcslen and strnlen for x86-32
Diffstat (limited to 'sysdeps/i386/i686/multiarch/strnlen-c.c')
-rw-r--r--sysdeps/i386/i686/multiarch/strnlen-c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/multiarch/strnlen-c.c b/sysdeps/i386/i686/multiarch/strnlen-c.c
new file mode 100644
index 0000000000..567af2c815
--- /dev/null
+++ b/sysdeps/i386/i686/multiarch/strnlen-c.c
@@ -0,0 +1,8 @@
+#ifndef NOT_IN_libc
+# define STRNLEN  __strnlen_ia32
+# undef libc_hidden_builtin_def
+# define libc_hidden_def(name)  \
+    __hidden_ver1 (__strnlen_ia32, __GI_strnlen, __strnlen_ia32);
+#endif
+
+#include "string/strnlen.c"