Skip to content

Commit c2b4b99

Browse files
committed
[libc] TotalBits -> TOTAL_BITS
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 07e1de8 commit c2b4b99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/__support/fixed_point/fx_bits.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ template <typename XType> LIBC_INLINE constexpr XType divi(int n, int d) {
256256
constexpr int F = FXRep<XType>::FRACTION_LEN;
257257
int64_t scaled_n = static_cast<int64_t>(n) << F;
258258
int64_t res64 = scaled_n >> k;
259-
constexpr int TotalBits = sizeof(XType) * 8;
260-
const int64_t max_limit = (1LL << (TotalBits - 1)) - 1;
261-
const int64_t min_limit = -(1LL << (TotalBits - 1));
259+
constexpr int TOTAL_BITS = sizeof(XType) * 8;
260+
const int64_t max_limit = (1LL << (TOTAL_BITS - 1)) - 1;
261+
const int64_t min_limit = -(1LL << (TOTAL_BITS - 1));
262262
if (res64 > max_limit) {
263263
return FXRep<XType>::MAX();
264264
} else if (res64 < min_limit) {

0 commit comments

Comments
 (0)