Skip to content

Commit

Permalink
Merge pull request #4315 from martin-frbg/m3_cpufamily
Browse files Browse the repository at this point in the history
Add OSX hw.cpufamily autodetection for Apple M3 as VORTEX
  • Loading branch information
martin-frbg authored Nov 12, 2023
2 parents c245c12 + e1f529d commit a47ceda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpuid_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a47ceda

Please sign in to comment.