We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92554bb + fd46ea5 commit dbb244aCopy full SHA for dbb244a
src/int/specialized_div_rem/mod.rs
@@ -95,8 +95,9 @@ const USE_LZ: bool = {
95
// LZD or LZCNT on SPARC only exists for the VIS 3 extension and later.
96
cfg!(target_feature = "vis3")
97
} else if cfg!(any(target_arch = "riscv32", target_arch = "riscv64")) {
98
- // The `B` extension on RISC-V determines if a CLZ assembly instruction exists
99
- cfg!(target_feature = "b")
+ // The 'Zbb' Basic Bit-Manipulation extension on RISC-V
+ // determines if a CLZ assembly instruction exists
100
+ cfg!(target_feature = "zbb")
101
} else {
102
// All other common targets Rust supports should have CLZ instructions
103
true
0 commit comments