Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10832 from tellowkrinkle/FixCTZ
Common: Fix CountTrailingZeros for weird compilers
  • Loading branch information
AdmiralCurtiss committed Jul 11, 2022
2 parents cce6133 + 3d34a20 commit 99eef44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/BitUtils.h
Expand Up @@ -457,7 +457,7 @@ constexpr int CountTrailingZeros(uint32_t value)
return _BitScanForward(&index, value) ? index : 32;
}
#else
return CountLeadingZerosConst(value);
return CountTrailingZerosConst(value);
#endif
}

Expand Down

0 comments on commit 99eef44

Please sign in to comment.