diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2023-04-05 09:21:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2023-04-05 14:46:10 -0700 |
commit | 96037c697d5a5b1bc19caae74dddf45e041b0ffd (patch) | |
tree | 2fd2f8ac31e6bce964b796323cd281803a26a433 /sysdeps/x86/cpu-features.c | |
parent | 8b4cc05eabdb67902171d8c05a4915d14b1e5f58 (diff) | |
download | glibc-96037c697d5a5b1bc19caae74dddf45e041b0ffd.zip glibc-96037c697d5a5b1bc19caae74dddf45e041b0ffd.tar.gz glibc-96037c697d5a5b1bc19caae74dddf45e041b0ffd.tar.bz2 |
<sys/platform/x86.h>: Add AVX-IFMA support
Add AVX-IFMA support to <sys/platform/x86.h>.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'sysdeps/x86/cpu-features.c')
-rw-r--r-- | sysdeps/x86/cpu-features.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index 6c1b5ef..06fae44 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -139,6 +139,8 @@ update_active (struct cpu_features *cpu_features) cpu_features->preferred[index_arch_AVX_Fast_Unaligned_Load] |= bit_arch_AVX_Fast_Unaligned_Load; } + /* Determine if AVX-IFMA is usable. */ + CPU_FEATURE_SET_ACTIVE (cpu_features, AVX_IFMA); /* Determine if AVX-VNNI is usable. */ CPU_FEATURE_SET_ACTIVE (cpu_features, AVX_VNNI); /* Determine if FMA is usable. */ |