2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 08:29:36 +00:00

refactor(zcg): use wordsize instead of architecture

This commit is contained in:
Michael Oliver
2026-04-30 13:48:32 +01:00
parent abfc2dc547
commit 97591f59f4
30 changed files with 170 additions and 173 deletions
@@ -0,0 +1,19 @@
#include "WordSize.h"
#include <cassert>
unsigned GetPointerSizeForWordSize(const WordSize wordSize)
{
switch (wordSize)
{
case WordSize::BITS_32:
return sizeof(uint32_t);
case WordSize::BITS_64:
return sizeof(uint64_t);
default:
assert(false);
return sizeof(uint32_t);
}
}