Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/cpu_features.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMykola Hohsdze <Mykola_Hohsadze@epam.com>2022-08-04 22:01:47 +0300
committerMizux <mizux.dev@gmail.com>2022-08-04 22:56:32 +0300
commitc6b0a803a879105f997ddbab80506c2978cd7980 (patch)
treedcedf0369748b4154c547070e0b1f1495c271517 /src
parentcbc8f9c7a37db9169f8c361fba42b7eace7fdc3d (diff)
Add AVX_VNNI
Diffstat (limited to 'src')
-rw-r--r--src/impl_x86__base_implementation.inl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/impl_x86__base_implementation.inl b/src/impl_x86__base_implementation.inl
index b719a64..12bc918 100644
--- a/src/impl_x86__base_implementation.inl
+++ b/src/impl_x86__base_implementation.inl
@@ -342,6 +342,7 @@ static void ParseCpuId(const Leaves* leaves, X86Info* info,
if (os_preserves->avx_registers) {
features->fma3 = IsBitSet(leaf_1.ecx, 12);
features->avx = IsBitSet(leaf_1.ecx, 28);
+ features->avx_vnni = IsBitSet(leaf_7_1.eax, 4);
features->avx2 = IsBitSet(leaf_7.ebx, 5);
}
if (os_preserves->avx512_registers) {
@@ -1729,6 +1730,7 @@ CacheInfo GetX86CacheInfo(void) {
LINE(X86_SSE4_2, sse4_2, , , ) \
LINE(X86_SSE4A, sse4a, , , ) \
LINE(X86_AVX, avx, , , ) \
+ LINE(X86_AVX_VNNI, avx_vnni, , , ) \
LINE(X86_AVX2, avx2, , , ) \
LINE(X86_AVX512F, avx512f, , , ) \
LINE(X86_AVX512CD, avx512cd, , , ) \