mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 22:24:08 +03:00
AK: Fix typos
This commit is contained in:
parent
97d27c312a
commit
5e21759f3d
Notes:
sideshowbarker
2024-07-18 03:16:10 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/5e21759f3df Pull-request: https://github.com/SerenityOS/serenity/pull/10287 Reviewed-by: https://github.com/linusg ✅
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user