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.
FXRep:TOTAL_LEN
SIGN_LEN
1 parent c31e539 commit 9b499bcCopy full SHA for 9b499bc
libc/src/__support/fixed_point/fx_bits.h
@@ -185,7 +185,7 @@ countls(T f) {
185
using FXBits = FXBits<T>;
186
187
constexpr int CONTAIN_LEN = cpp::numeric_limits<BitType>::digits;
188
- constexpr int PADDING_LEN = CONTAIN_LEN - (FXRep::INTEGRAL_LEN + FXRep::FRACTION_LEN);
+ constexpr int PADDING_LEN = CONTAIN_LEN - FXRep::TOTAL_LEN;
189
190
if constexpr (FXRep::SIGN_LEN != 0) {
191
if (x < 0)
0 commit comments