mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
&&
This commit is contained in:
committed by
flysand7
parent
d44f8c377a
commit
826abd6245
+1
-1
@@ -28,7 +28,7 @@ gb_internal bool should_use_march_native() {
|
|||||||
int cpu[4];
|
int cpu[4];
|
||||||
odin_cpuid(0x1, &cpu[0]); // Get feature information in ECX + EDX
|
odin_cpuid(0x1, &cpu[0]); // Get feature information in ECX + EDX
|
||||||
|
|
||||||
bool have_popcnt = cpu[2] && (1 << 23); // bit 23 in ECX = popcnt
|
bool have_popcnt = cpu[2] & (1 << 23); // bit 23 in ECX = popcnt
|
||||||
return !have_popcnt;
|
return !have_popcnt;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user