mirror of
https://github.com/google/cpu_features.git
synced 2025-07-09 08:40:44 +02:00
Change feature variables to unsigned int to fully comply with 'true' and 'false' & IsBitSet()
It seems that ' : 1' alignments cause signed integers to be either -1 or 0. While -1 is true and 0 is false reverse might not be always correct when true is defined 1. Maybe change feature variables to bool ?
This commit is contained in:
@ -21,47 +21,47 @@
|
||||
CPU_FEATURES_START_CPP_NAMESPACE
|
||||
|
||||
typedef struct {
|
||||
int ppc32 : 1;
|
||||
int ppc64 : 1;
|
||||
int ppc601 : 1;
|
||||
int altivec : 1;
|
||||
int fpu : 1;
|
||||
int mmu : 1;
|
||||
int mac_4xx : 1;
|
||||
int unifiedcache : 1;
|
||||
int spe : 1;
|
||||
int efpsingle : 1;
|
||||
int efpdouble : 1;
|
||||
int no_tb : 1;
|
||||
int power4 : 1;
|
||||
int power5 : 1;
|
||||
int power5plus : 1;
|
||||
int cell : 1;
|
||||
int booke : 1;
|
||||
int smt : 1;
|
||||
int icachesnoop : 1;
|
||||
int arch205 : 1;
|
||||
int pa6t : 1;
|
||||
int dfp : 1;
|
||||
int power6ext : 1;
|
||||
int arch206 : 1;
|
||||
int vsx : 1;
|
||||
int pseries_perfmon_compat : 1;
|
||||
int truele : 1;
|
||||
int ppcle : 1;
|
||||
int arch207 : 1;
|
||||
int htm : 1;
|
||||
int dscr : 1;
|
||||
int ebb : 1;
|
||||
int isel : 1;
|
||||
int tar : 1;
|
||||
int vcrypto : 1;
|
||||
int htm_nosc : 1;
|
||||
int arch300 : 1;
|
||||
int ieee128 : 1;
|
||||
int darn : 1;
|
||||
int scv : 1;
|
||||
int htm_no_suspend : 1;
|
||||
unsigned int ppc32 : 1;
|
||||
unsigned int ppc64 : 1;
|
||||
unsigned int ppc601 : 1;
|
||||
unsigned int altivec : 1;
|
||||
unsigned int fpu : 1;
|
||||
unsigned int mmu : 1;
|
||||
unsigned int mac_4xx : 1;
|
||||
unsigned int unifiedcache : 1;
|
||||
unsigned int spe : 1;
|
||||
unsigned int efpsingle : 1;
|
||||
unsigned int efpdouble : 1;
|
||||
unsigned int no_tb : 1;
|
||||
unsigned int power4 : 1;
|
||||
unsigned int power5 : 1;
|
||||
unsigned int power5plus : 1;
|
||||
unsigned int cell : 1;
|
||||
unsigned int booke : 1;
|
||||
unsigned int smt : 1;
|
||||
unsigned int icachesnoop : 1;
|
||||
unsigned int arch205 : 1;
|
||||
unsigned int pa6t : 1;
|
||||
unsigned int dfp : 1;
|
||||
unsigned int power6ext : 1;
|
||||
unsigned int arch206 : 1;
|
||||
unsigned int vsx : 1;
|
||||
unsigned int pseries_perfmon_compat : 1;
|
||||
unsigned int truele : 1;
|
||||
unsigned int ppcle : 1;
|
||||
unsigned int arch207 : 1;
|
||||
unsigned int htm : 1;
|
||||
unsigned int dscr : 1;
|
||||
unsigned int ebb : 1;
|
||||
unsigned int isel : 1;
|
||||
unsigned int tar : 1;
|
||||
unsigned int vcrypto : 1;
|
||||
unsigned int htm_nosc : 1;
|
||||
unsigned int arch300 : 1;
|
||||
unsigned int ieee128 : 1;
|
||||
unsigned int darn : 1;
|
||||
unsigned int scv : 1;
|
||||
unsigned int htm_no_suspend : 1;
|
||||
|
||||
// Make sure to update PPCFeaturesEnum below if you add a field here.
|
||||
} PPCFeatures;
|
||||
|
Reference in New Issue
Block a user