wip: multiple variants in zonecode

This commit is contained in:
Jan Laupetin
2026-08-19 19:36:15 +02:00
parent cdaeb19bcb
commit 6d44ed0568
53 changed files with 392 additions and 276 deletions
@@ -0,0 +1,23 @@
#pragma once
#include <cstdint>
#include <utility>
enum class WordSize : std::uint8_t
{
BITS_32,
BITS_64,
COUNT
};
static constexpr auto WORD_SIZE_COUNT = std::to_underlying(WordSize::COUNT);
static constexpr WordSize OWN_WORD_SIZE =
#if defined(ARCH_x86)
WordSize::BITS_32
#elif defined(ARCH_x64)
WordSize::BITS_64
#endif
;
extern unsigned GetPointerSizeForWordSize(WordSize wordSize);