diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-11-06 17:25:43 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-11-21 16:15:42 -0300 |
commit | 1c87f71a36e21fa851117c151b3c492fa3eede5b (patch) | |
tree | 85bf66afd8d2fd3ffae2a92f0cbb0b42d5bdcc6e /sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h | |
parent | 4862d546c04bd2caf496d48335a546c0a44ad4a5 (diff) | |
download | glibc-1c87f71a36e21fa851117c151b3c492fa3eede5b.tar.gz glibc-1c87f71a36e21fa851117c151b3c492fa3eede5b.tar.xz glibc-1c87f71a36e21fa851117c151b3c492fa3eede5b.zip |
s390: Use dl-symbol-redir-ifunc.h on cpu-tunables
Using the memcmp symbol directly allows the compile to inline the memcmp calls (especially because _dl_tunable_set_hwcaps uses constants values), generating better code. Checked with tst-tunables on s390x-linux-gnu (qemu system). Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h')
-rw-r--r-- | sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h b/sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h index aa084fdcde..0f58897c48 100644 --- a/sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h +++ b/sysdeps/s390/multiarch/dl-symbol-redir-ifunc.h @@ -20,10 +20,12 @@ #define _DL_IFUNC_GENERIC_H #include <ifunc-memset.h> +#include <ifunc-memcmp.h> #define IFUNC_SYMBOL_STR1(s) #s #define IFUNC_SYMBOL_STR(s) IFUNC_SYMBOL_STR1(s) asm ("memset = " IFUNC_SYMBOL_STR(MEMSET_DEFAULT)); +asm ("memcmp = " IFUNC_SYMBOL_STR(MEMCMP_DEFAULT)); #endif |