Browse Source

Add OSX hw.cpufamily value for Apple M3

tags/v0.3.25^2
Martin Kroeker GitHub 1 year ago
parent
commit
e1f529d024
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      cpuid_arm64.c

+ 1
- 0
cpuid_arm64.c View File

@@ -270,6 +270,7 @@ int detect(void)
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
if (value64 == 2271604202) return CPU_VORTEX; //A16/M3
#endif
return CPU_ARMV8;
#endif


Loading…
Cancel
Save