We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a3ed2 commit 3c31ee7Copy full SHA for 3c31ee7
llvm/include/llvm/ADT/APInt.h
@@ -512,7 +512,7 @@ class [[nodiscard]] APInt {
512
return isShiftedMask_64(U.VAL);
513
unsigned Ones = countPopulationSlowCase();
514
unsigned LeadZ = countLeadingZerosSlowCase();
515
- return (Ones + LeadZ + countr_zero()) == BitWidth;
+ return (Ones + LeadZ + countTrailingZerosSlowCase()) == BitWidth;
516
}
517
518
/// Return true if this APInt value contains a non-empty sequence of ones with
0 commit comments