Skip to content

Commit

Permalink
Merge pull request #536 from AaronKutch/change_riscv_zbb
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jul 7, 2023
2 parents 92554bb + fd46ea5 commit dbb244a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/int/specialized_div_rem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ const USE_LZ: bool = {
// LZD or LZCNT on SPARC only exists for the VIS 3 extension and later.
cfg!(target_feature = "vis3")
} else if cfg!(any(target_arch = "riscv32", target_arch = "riscv64")) {
// The `B` extension on RISC-V determines if a CLZ assembly instruction exists
cfg!(target_feature = "b")
// The 'Zbb' Basic Bit-Manipulation extension on RISC-V
// determines if a CLZ assembly instruction exists
cfg!(target_feature = "zbb")
} else {
// All other common targets Rust supports should have CLZ instructions
true
Expand Down

0 comments on commit dbb244a

Please sign in to comment.