1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:17:45 +00:00

AK: Include Assertions.h in StdLibExtras.h

This commit is contained in:
Mițca Dumitru 2021-03-07 22:22:36 +02:00 committed by Andreas Kling
parent 352b383280
commit 8f7aa1e03a

View file

@ -26,6 +26,8 @@
#pragma once
#include <AK/Assertions.h>
constexpr unsigned round_up_to_power_of_two(unsigned value, unsigned power_of_two)
{
return ((value - 1) & ~(power_of_two - 1)) + power_of_two;