diff --git a/crates/polars-utils/src/cpuid.rs b/crates/polars-utils/src/cpuid.rs index f7642e3e574c..7ad43b82ca42 100644 --- a/crates/polars-utils/src/cpuid.rs +++ b/crates/polars-utils/src/cpuid.rs @@ -21,7 +21,7 @@ fn detect_fast_bmi2() -> bool { // Hardcoded blacklist of known-bad AMD families. // We'll assume any future releases that support BMI2 have a // proper implementation. - !(family_id >= 0x15 && family_id <= 0x18) + !(0x15..=0x18).contains(&family_id) } else { true }