aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authordengjianbo <dengjianbo@loongson.cn>2023-08-28 10:08:38 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-08-29 10:35:38 +0800
commit1b1e9b7c10f27947a7cddddf95701ec8030167a6 (patch)
treebe3b9a89503dfcd1579cb1d09b1a292055bfa478 /time
parent55e84dc6edc074f0f87a28bafce3249dfed4b201 (diff)
downloadglibc-1b1e9b7c10f27947a7cddddf95701ec8030167a6.zip
glibc-1b1e9b7c10f27947a7cddddf95701ec8030167a6.tar.gz
glibc-1b1e9b7c10f27947a7cddddf95701ec8030167a6.tar.bz2
LoongArch: Add ifunc support for memset{aligned, unaligned, lsx, lasx}
According to glibc memset microbenchmark test results, for LSX and LASX versions, A few cases with length less than 8 experience performace degradation, overall, the LASX version could reduce the runtime about 15% - 75%, LSX version could reduce the runtime about 15%-50%. The unaligned version uses unaligned memmory access to set data which length is less than 64 and make address aligned with 8. For this part, the performace is better than aligned version. Comparing with the generic version, the performance is close when the length is larger than 128. When the length is 8-128, the unaligned version could reduce the runtime about 30%-70%, the aligned version could reduce the runtime about 20%-50%.
Diffstat (limited to 'time')
0 files changed, 0 insertions, 0 deletions