mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00: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
@@ -48,12 +48,12 @@ struct AllocationHeader {
|
||||
u8 data[0];
|
||||
};
|
||||
|
||||
#define BASE_PHYSICAL (0xc0000000 + (4 * MB))
|
||||
#define BASE_PHYSICAL (0xc0000000 + (4 * MiB))
|
||||
#define CHUNK_SIZE 32
|
||||
#define POOL_SIZE (3 * MB)
|
||||
#define POOL_SIZE (3 * MiB)
|
||||
|
||||
#define ETERNAL_BASE_PHYSICAL (0xc0000000 + (2 * MB))
|
||||
#define ETERNAL_RANGE_SIZE (2 * MB)
|
||||
#define ETERNAL_BASE_PHYSICAL (0xc0000000 + (2 * MiB))
|
||||
#define ETERNAL_RANGE_SIZE (2 * MiB)
|
||||
|
||||
static u8 alloc_map[POOL_SIZE / CHUNK_SIZE / 8];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user