1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 13:21:13 +02:00

Add X86 GFNI detection

This commit is contained in:
Mykola Hohsdze
2022-10-23 20:03:05 +03:00
committed by Mizux
parent 8ca7c65f65
commit 3485a46a6d
3 changed files with 23 additions and 1 deletions

View File

@ -100,6 +100,7 @@ typedef struct {
int ss : 1;
int adx : 1;
int lzcnt : 1; // Note: this flag is called ABM for AMD, LZCNT for Intel.
int gfni: 1;
// Make sure to update X86FeaturesEnum below if you add a field here.
} X86Features;
@ -256,6 +257,7 @@ typedef enum {
X86_SS,
X86_ADX,
X86_LZCNT,
X86_GFNI,
X86_LAST_,
} X86FeaturesEnum;