Why does u64::trailing_zeros() generate branched assembly when branchless works?
Channel: Peter Schneider
Date: 2022-12-10

Why does u64::trailing_zeros() generate branched assembly when branchless works?
I hope you found a solution that worked for you :)
 The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA  |
Thanks to all those great people for their contributions!

 (stackoverflow.com/users/1002430/ana)Ana |
 (stackoverflow.com/users/847382/pitaj)PitaJ |
 A special thanks goes out to the (https://stackoverflow.com/questions/74620023/why-does-u64trailing-zeros-generate-branched-assembly-when-branchless-works)Stackexchange community |
 
 I wish you all a wonderful day! Stay safe :)
 
  llvm optimization rust x86-64