mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
AK: Include Assertions.h in StdLibExtras.h
This commit is contained in:
parent
352b383280
commit
8f7aa1e03a
Notes:
sideshowbarker
2024-07-18 21:35:58 +09:00
Author: https://github.com/RealKC
Commit: 8f7aa1e03a
Pull-request: https://github.com/SerenityOS/serenity/pull/5688
Issue: https://github.com/SerenityOS/serenity/issues/4282
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/awesomekling
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