diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-05-21 16:54:46 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-05-21 16:54:59 -0700 |
commit | e28e9b1ec40d5b545d980b0a36cbe41f3d1dbf6a (patch) | |
tree | 7fe0767441c477a36fe4d7aeb2caf17e7c45c18a /sysdeps/x86/cpu-features.h | |
parent | 1af30adcd59fae929371d3a56b239861b1088a6e (diff) | |
download | glibc-e28e9b1ec40d5b545d980b0a36cbe41f3d1dbf6a.zip glibc-e28e9b1ec40d5b545d980b0a36cbe41f3d1dbf6a.tar.gz glibc-e28e9b1ec40d5b545d980b0a36cbe41f3d1dbf6a.tar.bz2 |
x86-64: Check Prefer_FSRM in ifunc-memmove.h
Although the REP MOVSB implementations of memmove, memcpy and mempcpy
aren't used by the current processors, this patch adds Prefer_FSRM
check in ifunc-memmove.h so that they can be used in the future.
* sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
(index_arch_Prefer_FSRM): Likewise.
* sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
Also check Prefer_FSRM.
* sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
Also return OPTIMIZE (erms) for Prefer_FSRM.
Diffstat (limited to 'sysdeps/x86/cpu-features.h')
-rw-r--r-- | sysdeps/x86/cpu-features.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.h b/sysdeps/x86/cpu-features.h index 2088bd7..624e681 100644 --- a/sysdeps/x86/cpu-features.h +++ b/sysdeps/x86/cpu-features.h @@ -40,6 +40,7 @@ #define bit_arch_Prefer_No_AVX512 (1 << 20) #define bit_arch_MathVec_Prefer_No_AVX512 (1 << 21) #define bit_arch_XSAVEC_Usable (1 << 22) +#define bit_arch_Prefer_FSRM (1 << 23) /* CPUID Feature flags. */ @@ -264,6 +265,7 @@ extern const struct cpu_features *__get_cpu_features (void) # define index_arch_Prefer_No_AVX512 FEATURE_INDEX_1 # define index_arch_MathVec_Prefer_No_AVX512 FEATURE_INDEX_1 # define index_arch_XSAVEC_Usable FEATURE_INDEX_1 +# define index_arch_Prefer_FSRM FEATURE_INDEX_1 #endif /* !__ASSEMBLER__ */ |