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

Add detection LZCNT (#254)

Fixes #253
This commit is contained in:
Mykola Hohsadze
2022-07-28 13:22:16 +03:00
committed by GitHub
parent 677d6419b2
commit 601471d527
3 changed files with 63 additions and 20 deletions

View File

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