LoongArch: Add ifunc support for memrchr{lsx, lasx}
authordengjianbo <dengjianbo@loongson.cn>
Mon, 28 Aug 2023 02:08:37 +0000 (10:08 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Tue, 29 Aug 2023 02:35:38 +0000 (10:35 +0800)
commit55e84dc6edc074f0f87a28bafce3249dfed4b201
treeb0d1496e0e26400dcd06cda181f73ad89cdfbbf3
parent60bcb9acbfcb40d1b613a13b539cb75e500b4ad6
LoongArch: Add ifunc support for memrchr{lsx, lasx}

According to glibc memrchr microbenchmark, this implementation could reduce
the runtime as following:

Name            Percent of rutime reduced
memrchr-lasx    20%-83%
memrchr-lsx     20%-64%
sysdeps/loongarch/lp64/multiarch/Makefile
sysdeps/loongarch/lp64/multiarch/ifunc-impl-list.c
sysdeps/loongarch/lp64/multiarch/ifunc-memrchr.h [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memrchr-generic.c [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memrchr-lasx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memrchr-lsx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memrchr.c [new file with mode: 0644]