mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03: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: https://github.com/SerenityOS/serenity/commit/8f7aa1e03a8 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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user