about summary refs log tree commit diff
path: root/sysdeps/loongarch/lp64/multiarch/Makefile
diff options
context:
space:
mode:
authordengjianbo <dengjianbo@loongson.cn>2023-08-24 16:50:17 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-08-24 17:19:47 +0800
commite74d959862db0e97a1a186ffe606e8fb6c93c309 (patch)
tree92d9260c7cb646991d251da854d05aed562f69fd /sysdeps/loongarch/lp64/multiarch/Makefile
parent1dc0bc8f07483e3faef245c343b773137c8d2c4f (diff)
downloadglibc-e74d959862db0e97a1a186ffe606e8fb6c93c309.tar.gz
glibc-e74d959862db0e97a1a186ffe606e8fb6c93c309.tar.xz
glibc-e74d959862db0e97a1a186ffe606e8fb6c93c309.zip
LoongArch: Add ifunc support for strnlen{aligned, lsx, lasx}
Based on the glibc microbenchmark, strnlen-aligned implementation could
reduce the runtime more than 10%, strnlen-lsx implementation could reduce
the runtime about 50%-78%, strnlen-lasx implementation could reduce the
runtime about 50%-88%.
Diffstat (limited to 'sysdeps/loongarch/lp64/multiarch/Makefile')
-rw-r--r--sysdeps/loongarch/lp64/multiarch/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/loongarch/lp64/multiarch/Makefile b/sysdeps/loongarch/lp64/multiarch/Makefile
index afa5104174..c4dd3143d1 100644
--- a/sysdeps/loongarch/lp64/multiarch/Makefile
+++ b/sysdeps/loongarch/lp64/multiarch/Makefile
@@ -3,6 +3,9 @@ sysdep_routines += \
   strlen-aligned \
   strlen-lsx \
   strlen-lasx \
+  strnlen-aligned \
+  strnlen-lsx \
+  strnlen-lasx \
   strchr-aligned \
   strchr-lsx \
   strchr-lasx \