]> sourceware.org Git - glibc.git/commit
LoongArch: Add ifunc support for rawmemchr{aligned, lsx, lasx}
authordengjianbo <dengjianbo@loongson.cn>
Mon, 28 Aug 2023 02:08:35 +0000 (10:08 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Tue, 29 Aug 2023 02:35:38 +0000 (10:35 +0800)
commitf8664fe2155eb5ddc22272bac72ab26368735718
treeaac9760625ff65d3f84561ff4ac30f63ae3e6f1b
parent3efa26749e4d28768558330353dc15c6f325ed4e
LoongArch: Add ifunc support for rawmemchr{aligned, lsx, lasx}

According to glibc rawmemchr microbenchmark, A few cases tested with
char '\0' experience performance degradation due to the lasx and lsx
versions don't handle the '\0' separately. Overall, rawmemchr-lasx
implementation could reduce the runtime about 40%-80%, rawmemchr-lsx
implementation could reduce the runtime about 40%-66%, rawmemchr-aligned
implementation could reduce the runtime about 20%-40%.
sysdeps/loongarch/lp64/multiarch/Makefile
sysdeps/loongarch/lp64/multiarch/ifunc-impl-list.c
sysdeps/loongarch/lp64/multiarch/ifunc-rawmemchr.h [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/rawmemchr-aligned.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/rawmemchr-lasx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/rawmemchr-lsx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/rawmemchr.c [new file with mode: 0644]
This page took 0.045925 seconds and 5 git commands to generate.