AK: Fix typos

This commit is contained in:
Nico Weber 2021-09-30 20:19:23 -04:00 committed by Linus Groh
parent 97d27c312a
commit 5e21759f3d
Notes: sideshowbarker 2024-07-18 03:16:10 +09:00

View File

@ -318,7 +318,7 @@ public:
return sizeof(R);
}
// Arithmetics
// Arithmetic
// implies size of less than u64, so passing references isn't useful
template<Unsigned U>
@ -676,18 +676,18 @@ public:
constexpr size_t log2()
{
// FIXME: propper rounding
// FIXME: proper rounding
return sizeof(R) - clz();
}
constexpr size_t logn(u64 base)
{
// FIXME: propper rounding
// FIXME: proper rounding
return log2() / (sizeof(u64) - __builtin_clzll(base));
}
template<Unsigned U>
requires(sizeof(U) > sizeof(u64)) constexpr size_t logn(U base)
{
// FIXME: propper rounding
// FIXME: proper rounding
return log2() / base.log2();
}