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

Add x86 missing feature detections for ndk_compat (#58)

One more step towards #47.
This commit is contained in:
Guillaume Chatelet
2019-01-22 13:19:42 +01:00
committed by GitHub
parent 5911e96bbd
commit d395dfa026
4 changed files with 38 additions and 5 deletions

View File

@ -20,6 +20,7 @@
CPU_FEATURES_START_CPP_NAMESPACE
// See https://en.wikipedia.org/wiki/CPUID for a list of x86 cpu features.
// The field names are based on the short name provided in the wikipedia tables.
typedef struct {
int aes : 1;
int erms : 1;
@ -55,6 +56,10 @@ typedef struct {
int smx : 1;
int sgx : 1;
int cx16 : 1; // aka. CMPXCHG16B
int sha : 1;
int popcnt : 1;
int movbe : 1;
int rdrnd : 1;
// Make sure to update X86FeaturesEnum below if you add a field here.
} X86Features;
@ -140,6 +145,10 @@ typedef enum {
X86_SMX,
X86_SGX,
X86_CX16,
X86_SHA,
X86_POPCNT,
X86_MOVBE,
X86_RDRND,
X86_LAST_,
} X86FeaturesEnum;