]> git.ipfire.org Git - thirdparty/glibc.git/commit
LoongArch: Add ifunc support for strncmp{aligned, lsx}
authordengjianbo <dengjianbo@loongson.cn>
Thu, 24 Aug 2023 08:50:19 +0000 (16:50 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Thu, 24 Aug 2023 09:19:47 +0000 (17:19 +0800)
commitddbb74f5c2ceffcb8f6efcbbb5ffbe4a3641ef93
tree3468054c8c373a86f8ac969131321ee9c4c73576
parent82d9426e4a1a500b90b05457574dee1afe1408f8
LoongArch: Add ifunc support for strncmp{aligned, lsx}

Based on the glibc microbenchmark, only a few short inputs with this
strncmp-aligned and strncmp-lsx implementation experience performance
degradation, overall, strncmp-aligned could reduce the runtime 0%-10%
for aligned comparision, 10%-25% for unaligend comparision, strncmp-lsx
could reduce the runtime about 0%-60%.
sysdeps/loongarch/lp64/multiarch/Makefile
sysdeps/loongarch/lp64/multiarch/ifunc-impl-list.c
sysdeps/loongarch/lp64/multiarch/ifunc-strncmp.h [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/strncmp-aligned.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/strncmp-lsx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/strncmp.c [new file with mode: 0644]