We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4743d80 commit 1865b15Copy full SHA for 1865b15
cpuid_x86.c
@@ -1549,6 +1549,10 @@ int get_cpuname(void){
1549
case 7: // Raptor Lake
1550
if(support_avx2())
1551
return CPUTYPE_HASWELL;
1552
+ if(support_avx())
1553
+ return CPUTYPE_SANDYBRIDGE;
1554
+ else
1555
+ return CPUTYPE_NEHALEM;
1556
}
1557
break;
1558
@@ -2344,8 +2348,14 @@ int get_coretype(void){
2344
2348
case 11:
2345
2349
switch (model) {
2346
2350
2347
- if(support_avx2())
2351
+#ifndef NO_AVX2
2352
+ if(support_avx2())
2353
return CORE_HASWELL;
2354
+#endif
2355
2356
+ return CORE_SANDYBRIDGE;
2357
2358
+ return CORE_NEHALEM;
2359
2360
case 15:
2361
if (model <= 0x2) return CORE_NORTHWOOD;
0 commit comments