LoongArch: Add ifunc support for memchr{aligned, lsx, lasx}
authordengjianbo <dengjianbo@loongson.cn>
Mon, 28 Aug 2023 02:08:36 +0000 (10:08 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Tue, 29 Aug 2023 02:35:38 +0000 (10:35 +0800)
commit60bcb9acbfcb40d1b613a13b539cb75e500b4ad6
treef204b7309aa842014f41d3bcef3eecac02e53ce4
parentf8664fe2155eb5ddc22272bac72ab26368735718
LoongArch: Add ifunc support for memchr{aligned, lsx, lasx}

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

Name               Percent of runtime reduced
memchr-lasx        37%-83%
memchr-lsx         30%-66%
memchr-aligned     0%-15%
sysdeps/loongarch/lp64/multiarch/Makefile
sysdeps/loongarch/lp64/multiarch/ifunc-impl-list.c
sysdeps/loongarch/lp64/multiarch/ifunc-memchr.h [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memchr-aligned.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memchr-lasx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memchr-lsx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/memchr.c [new file with mode: 0644]