Use long value fields for cpu ident on OSX
This commit is contained in:
parent
3727672a74
commit
f096a339e4
|
@ -267,9 +267,9 @@ int detect(void)
|
|||
}
|
||||
#else
|
||||
#ifdef __APPLE__
|
||||
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
|
||||
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX; //A12/M1
|
||||
if (value == 3660830781) return CPU_VORTEX; //A15/M2
|
||||
sysctlbyname("hw.cpufamily",&value64,&length64,NULL,0);
|
||||
if (value64 ==131287967|| value64 == 458787763 ) return CPU_VORTEX; //A12/M1
|
||||
if (value64 == 3660830781) return CPU_VORTEX; //A15/M2
|
||||
#endif
|
||||
return CPU_ARMV8;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue