mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-09-08 15:07:06 +00:00
24 lines
416 B
C++
24 lines
416 B
C++
#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);
|