Everywhere: Make the codebase more architecture aware

This commit is contained in:
Undefine 2022-07-22 20:48:24 +02:00 committed by Brian Gianforcaro
commit 97cc33ca47
Notes: sideshowbarker 2024-07-17 08:37:36 +09:00
22 changed files with 108 additions and 36 deletions

View file

@ -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));