mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
AK: Include Assertions.h in StdLibExtras.h
This commit is contained in:
parent
352b383280
commit
8f7aa1e03a
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/Assertions.h>
|
||||||
|
|
||||||
constexpr unsigned round_up_to_power_of_two(unsigned value, unsigned power_of_two)
|
constexpr unsigned round_up_to_power_of_two(unsigned value, unsigned power_of_two)
|
||||||
{
|
{
|
||||||
return ((value - 1) & ~(power_of_two - 1)) + power_of_two;
|
return ((value - 1) & ~(power_of_two - 1)) + power_of_two;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue