1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-31 15:37:47 +00:00

AK+LibAudio: Remove UFixedBigInt::my_size

This commit is contained in:
Dan Klishch 2023-02-09 16:46:07 +03:00 committed by Jelle Raaijmakers
parent 11a7e21c2a
commit 882dcfaddb
3 changed files with 3 additions and 11 deletions

View file

@ -434,8 +434,7 @@ constexpr static u128 compute_power_of_five(i64 exponent)
base *= 5u;
}
auto z = u4096::my_size() * 8
- base.clz();
auto z = 4096 - base.clz();
auto b = z + 127;
u4096 base2 { 1u };
@ -457,8 +456,7 @@ constexpr static u128 compute_power_of_five(i64 exponent)
base *= 5u;
}
auto z = u4096::my_size() * 8
- base.clz();
auto z = 4096 - base.clz();
auto b = 2 * z + 128;

View file

@ -441,12 +441,6 @@ public:
constexpr auto& operator%=(U const& other) { return *this = *this % other; }
constexpr auto& operator%=(IntegerWrapper const& other) { return *this = *this % other; }
// FIXME: Replace uses with more general `assumed_bit_size<T>`.
static constexpr size_t my_size()
{
return sizeof(Storage);
}
// Note: If there ever be need for non side-channel proof sqrt/pow/pow_mod of UFixedBigInt, you
// can restore them from Git history.