powerpc: Add optimized strncpy for POWER9

System Internals / glibc - Raphael M Zinsly [linux.ibm.com] - 12 November 2020 16:12 UTC

Similar to the strcpy P9 optimization, this version uses VSX to improve performance.

b9d83bf3eb powerpc: Add optimized strncpy for POWER9
sysdeps/powerpc/powerpc64/le/power9/strncpy.S | 344 +++++++++++++++++++++
sysdeps/powerpc/powerpc64/multiarch/Makefile | 2 +-
.../powerpc/powerpc64/multiarch/ifunc-impl-list.c | 6 +
.../powerpc/powerpc64/multiarch/strncpy-power9.S | 32 ++
sysdeps/powerpc/powerpc64/multiarch/strncpy.c | 8 +
5 files changed, 391 insertions(+), 1 deletion(-)

Upstream: sourceware.org


  • Share