about summary refs log tree commit diff
path: root/sysdeps/loongarch/lp64/multiarch/Makefile
diff options
context:
space:
mode:
authordengjianbo <dengjianbo@loongson.cn>2023-09-13 15:35:00 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-09-15 09:07:47 +0800
commit24279aecf34a830a744038cb922d94b5a2d9c1cb (patch)
tree8412b585df3f8206103d1e9db8133a1de1043e54 /sysdeps/loongarch/lp64/multiarch/Makefile
parent06251002d4a1d92101ae7205be380887a4129471 (diff)
downloadglibc-24279aecf34a830a744038cb922d94b5a2d9c1cb.tar.gz
glibc-24279aecf34a830a744038cb922d94b5a2d9c1cb.tar.xz
glibc-24279aecf34a830a744038cb922d94b5a2d9c1cb.zip
LoongArch: Add ifunc support for strrchr{aligned, lsx, lasx}
According to glibc strrchr microbenchmark test results, this implementation
could reduce the runtime time as following:

Name                Percent of rutime reduced
strrchr-lasx        10%-50%
strrchr-lsx         0%-50%
strrchr-aligned     5%-50%

Generic strrchr is implemented by function strlen + memrchr, the lasx version
will compare with generic strrchr implemented by strlen-lasx + memrchr-lasx,
the lsx version will compare with generic strrchr implemented by strlen-lsx +
memrchr-lsx, the aligned version will compare with generic strrchr implemented
by strlen-aligned + memrchr-generic.
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 39550bea9b..fe863e1ba4 100644
--- a/sysdeps/loongarch/lp64/multiarch/Makefile
+++ b/sysdeps/loongarch/lp64/multiarch/Makefile
@@ -9,6 +9,9 @@ sysdep_routines += \
   strchr-aligned \
   strchr-lsx \
   strchr-lasx \
+  strrchr-aligned \
+  strrchr-lsx \
+  strrchr-lasx \
   strchrnul-aligned \
   strchrnul-lsx \
   strchrnul-lasx \