mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
AK: Rename KB, MB, GB to KiB, MiB, GiB
The SI prefixes "k", "M", "G" mean "10^3", "10^6", "10^9". The IEC prefixes "Ki", "Mi", "Gi" mean "2^10", "2^20", "2^30". Let's use the correct name, at least in code. Only changes the name of the constants, no other behavior change.
This commit is contained in:
committed by
Andreas Kling
parent
a68650a7b4
commit
430b265cd4
Notes:
sideshowbarker
2024-07-19 03:34:44 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/430b265cd45 Pull-request: https://github.com/SerenityOS/serenity/pull/3164 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/alimpfard
@@ -44,9 +44,9 @@ namespace {
|
||||
using PthreadAttrImpl = Syscall::SC_create_thread_params;
|
||||
} // end anonymous namespace
|
||||
|
||||
constexpr size_t required_stack_alignment = 4 * MB;
|
||||
constexpr size_t required_stack_alignment = 4 * MiB;
|
||||
constexpr size_t highest_reasonable_guard_size = 32 * PAGE_SIZE;
|
||||
constexpr size_t highest_reasonable_stack_size = 8 * MB; // That's the default in Ubuntu?
|
||||
constexpr size_t highest_reasonable_stack_size = 8 * MiB; // That's the default in Ubuntu?
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user