Skip to content

Commit

Permalink
Support Apple A15/M2 cpus through the existing VORTEX target
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg committed Apr 10, 2023
1 parent 326b200 commit caa2945
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpuid_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ int detect(void)
#else
#ifdef __APPLE__
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX;
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX; //A12/M1
if (value == 3660830781) return CPU_VORTEX; //A15/M2
#endif
return CPU_ARMV8;
#endif
Expand Down

0 comments on commit caa2945

Please sign in to comment.