diff options
author | Mykola Hohsdze <Mykola_Hohsadze@epam.com> | 2022-10-23 20:03:05 +0300 |
---|---|---|
committer | Mizux <mizux.dev@gmail.com> | 2022-10-24 09:29:55 +0300 |
commit | 3485a46a6db772b358bcac4ca8a63ecb30123053 (patch) | |
tree | 837bdf33783dc6e9a9d081b6e50089b453c7bf87 /src | |
parent | 8ca7c65f6533d23163040e2b4630eb6c61ce1a6c (diff) |
Add X86 GFNI detection
Diffstat (limited to 'src')
-rw-r--r-- | src/impl_x86__base_implementation.inl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/impl_x86__base_implementation.inl b/src/impl_x86__base_implementation.inl index 81df54a..311ffaa 100644 --- a/src/impl_x86__base_implementation.inl +++ b/src/impl_x86__base_implementation.inl @@ -310,6 +310,7 @@ static void ParseCpuId(const Leaves* leaves, X86Info* info, features->clflushopt = IsBitSet(leaf_7.ebx, 23); features->clwb = IsBitSet(leaf_7.ebx, 24); features->sha = IsBitSet(leaf_7.ebx, 29); + features->gfni = IsBitSet(leaf_7.ecx, 8); features->vaes = IsBitSet(leaf_7.ecx, 9); features->vpclmulqdq = IsBitSet(leaf_7.ecx, 10); features->adx = IsBitSet(leaf_7.ebx, 19); @@ -1895,7 +1896,8 @@ CacheInfo GetX86CacheInfo(void) { LINE(X86_DCA, dca, , , ) \ LINE(X86_SS, ss, , , ) \ LINE(X86_ADX, adx, , , ) \ - LINE(X86_LZCNT, lzcnt, , , ) + LINE(X86_LZCNT, lzcnt, , , ) \ + LINE(X86_GFNI, gfni, , , ) #define INTROSPECTION_PREFIX X86 #define INTROSPECTION_ENUM_PREFIX X86 #include "define_introspection.inl" |