diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-11-07 15:02:19 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-11-07 15:02:19 +0100 |
| commit | 3bfe675a68ad8448195d3b4729ee293b547d8761 (patch) | |
| tree | 43c100590c3b630021c895891f941f060bba9c2a /src/build_cpuid.cpp | |
| parent | deb562613f5229e2e3881bd92b7a58e13813ea86 (diff) | |
&&
Diffstat (limited to 'src/build_cpuid.cpp')
| -rw-r--r-- | src/build_cpuid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_cpuid.cpp b/src/build_cpuid.cpp index a4e44e7f1..b7ba5dcdf 100644 --- a/src/build_cpuid.cpp +++ b/src/build_cpuid.cpp @@ -28,7 +28,7 @@ gb_internal bool should_use_march_native() { int cpu[4]; 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; #endif |