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

Add X86 movdir detection (#281)

This commit is contained in:
Mykola Hohsadze
2022-10-25 10:33:13 +03:00
committed by GitHub
parent 3485a46a6d
commit 26852665b4
3 changed files with 28 additions and 1 deletions

View File

@ -101,6 +101,8 @@ typedef struct {
int adx : 1;
int lzcnt : 1; // Note: this flag is called ABM for AMD, LZCNT for Intel.
int gfni: 1;
int movdiri: 1;
int movdir64b: 1;
// Make sure to update X86FeaturesEnum below if you add a field here.
} X86Features;
@ -258,6 +260,8 @@ typedef enum {
X86_ADX,
X86_LZCNT,
X86_GFNI,
X86_MOVDIRI,
X86_MOVDIR64B,
X86_LAST_,
} X86FeaturesEnum;