mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
Everywhere: Make the codebase more architecture aware
This commit is contained in:
parent
6c4b5775e1
commit
97cc33ca47
22 changed files with 108 additions and 36 deletions
|
@ -20,8 +20,10 @@
|
|||
|
||||
#if ARCH(I386)
|
||||
static constexpr size_t CHUNK_SIZE = 32;
|
||||
#else
|
||||
#elif ARCH(X86_64) || ARCH(AARCH64)
|
||||
static constexpr size_t CHUNK_SIZE = 64;
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
static_assert(is_power_of_two(CHUNK_SIZE));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue