about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-10-14 08:17:44 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-12-06 05:47:00 -0600
commitae9cf7a2e89aa4b4646b66dd32739409a46c857c (patch)
treece424920431250058f47fc48b83b8cf617b434ef /sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
parent3148bb7d2ca1239dff3f76a39cb60cd8c4302392 (diff)
downloadglibc-ae9cf7a2e89aa4b4646b66dd32739409a46c857c.tar.gz
glibc-ae9cf7a2e89aa4b4646b66dd32739409a46c857c.tar.xz
glibc-ae9cf7a2e89aa4b4646b66dd32739409a46c857c.zip
PowerPC: multiarch strnlen for PowerPC32
Diffstat (limited to 'sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c')
-rw-r--r--sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c b/sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
index 63dadade74..b2c6691c96 100644
--- a/sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
+++ b/sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
@@ -81,6 +81,13 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
 			      __strlen_power7)
 	      IFUNC_IMPL_ADD (array, i, strlen, 1,
 			      __strlen_ppc))
+
+  /* Support sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c.  */
+  IFUNC_IMPL (i, name, strnlen,
+	      IFUNC_IMPL_ADD (array, i, strnlen, hwcap & PPC_FEATURE_HAS_VSX,
+			      __strnlen_power7)
+	      IFUNC_IMPL_ADD (array, i, strnlen, 1,
+			      __strnlen_ppc))
 #endif
 
   /* Support sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c.  */