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
Notes: sideshowbarker 2024-07-18 21:35:58 +09:00

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;