diff options
| author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-06-12 15:53:36 -0700 |
|---|---|---|
| committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-06-30 13:47:17 +0200 |
| commit | 2f1f7a5f8aa7285e9a55b209dd01fdcb0d4e7281 (patch) | |
| tree | d905d50005692a91c90d953cb7f4f9b574530057 /sysdeps/aarch64/multiarch/ifunc-impl-list.c | |
| parent | 4dc83cac78a92a99cdd1ae808890083461597b82 (diff) | |
| download | glibc-2f1f7a5f8aa7285e9a55b209dd01fdcb0d4e7281.tar.xz glibc-2f1f7a5f8aa7285e9a55b209dd01fdcb0d4e7281.zip | |
Aarch64: Add new memset for Qualcomm's oryon-1 core
Qualcom's new core, oryon-1, has a different characteristics for
memset than the current versions of memset. For non-zero, larger
sizes, using GPRs rather than the SIMD stores is ~30% faster.
For even larger sizes, using the nontemporal stores is needed
not to polute the L1/L2 caches.
For zero values, using `dc zva` should be used. Since we
know the size will always be 64 bytes, we don't need to figure
out the size there.
I started with the emag memset and added back the `dc zva` code.
Changes since v1:
* v3: Fix comment formating
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/aarch64/multiarch/ifunc-impl-list.c')
| -rw-r--r-- | sysdeps/aarch64/multiarch/ifunc-impl-list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/aarch64/multiarch/ifunc-impl-list.c b/sysdeps/aarch64/multiarch/ifunc-impl-list.c index 65c56b9b41..b2fda541f9 100644 --- a/sysdeps/aarch64/multiarch/ifunc-impl-list.c +++ b/sysdeps/aarch64/multiarch/ifunc-impl-list.c @@ -56,6 +56,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, IFUNC_IMPL_ADD (array, i, memmove, 1, __memmove_generic)) IFUNC_IMPL (i, name, memset, IFUNC_IMPL_ADD (array, i, memset, (zva_size == 64), __memset_zva64) + IFUNC_IMPL_ADD (array, i, memset, (zva_size == 64), __memset_oryon1) IFUNC_IMPL_ADD (array, i, memset, 1, __memset_emag) IFUNC_IMPL_ADD (array, i, memset, 1, __memset_kunpeng) #if HAVE_AARCH64_SVE_ASM |
