helper for querying arch bittness in byte size

This commit is contained in:
Nikita Smith committed 2025-10-07 18:16:31 -07:00
1 parent 7cf3eaf73f
commit e4f6c0fc8e
2 files changed
+7

No files matched your search

+6
View File
@@ -407,6 +407,12 @@ bit_size_from_arch(Arch arch)
return arch_bitsize;
}
internal U64
byte_size_from_arch(Arch arch)
{
return bit_size_from_arch(arch) / 8;
}
internal U64
max_instruction_size_from_arch(Arch arch)
{