1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

AK: Fully qualify some usages of AK features outside of the AK namespace

This commit is contained in:
Tim Schumacher 2022-11-27 16:40:42 +01:00 committed by Andreas Kling
parent 03fd9002da
commit a8c73998f1
3 changed files with 5 additions and 5 deletions

View file

@ -17,13 +17,13 @@
#include <AK/Assertions.h>
template<typename T, typename U>
constexpr auto round_up_to_power_of_two(T value, U power_of_two) requires(IsIntegral<T>&& IsIntegral<U>)
constexpr auto round_up_to_power_of_two(T value, U power_of_two) requires(AK::Detail::IsIntegral<T>&& AK::Detail::IsIntegral<U>)
{
return ((value - 1) & ~(power_of_two - 1)) + power_of_two;
}
template<typename T>
constexpr bool is_power_of_two(T value) requires(IsIntegral<T>)
constexpr bool is_power_of_two(T value) requires(AK::Detail::IsIntegral<T>)
{
return value && !((value) & (value - 1));
}