diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-10-08 08:33:45 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-10-09 11:52:30 -0700 |
commit | 875a50ff63b2c86af770949d563ee851d08eb46e (patch) | |
tree | 28c755809dd2d5a3f5e516f60168693e44632fdf /sysdeps/x86/cpu-features.c | |
parent | ebe454bcca6a5421512ad228595a5391506e990a (diff) | |
download | glibc-875a50ff63b2c86af770949d563ee851d08eb46e.zip glibc-875a50ff63b2c86af770949d563ee851d08eb46e.tar.gz glibc-875a50ff63b2c86af770949d563ee851d08eb46e.tar.bz2 |
<sys/platform/x86.h>: Add AVX-VNNI support
Add AVX-VNNI support to <sys/platform/x86.h>.
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 4ecb8ce..b0fac22 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -119,6 +119,8 @@ update_usable (struct cpu_features *cpu_features) cpu_features->preferred[index_arch_AVX_Fast_Unaligned_Load] |= bit_arch_AVX_Fast_Unaligned_Load; } + /* Determine if AVX-VNNI is usable. */ + CPU_FEATURE_SET_USABLE (cpu_features, AVX_VNNI); /* Determine if FMA is usable. */ CPU_FEATURE_SET_USABLE (cpu_features, FMA); /* Determine if VAES is usable. */ |