2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 04:27:42 +00:00

Massive fmtlib refactor

This commit is contained in:
Jack Andersen
2019-07-19 18:27:21 -10:00
parent e38a3ece89
commit 7a3da1f7a6
228 changed files with 2071 additions and 2116 deletions

View File

@@ -18,7 +18,7 @@ struct CBitStreamReader : athena::io::MemoryReader {
u32 x20_bitOffset = 0;
public:
static u32 GetBitCount(u32 maxVal) {
static constexpr u32 GetBitCount(u32 maxVal) {
u32 ret = 0;
while (maxVal != 0) {
maxVal /= 2;
@@ -38,7 +38,7 @@ class CBitStreamWriter : public athena::io::MemoryWriter {
u32 x18_bitOffset = 0x20;
public:
static inline u32 GetBitCount(u32 maxVal) { return CBitStreamReader::GetBitCount(maxVal); }
static constexpr u32 GetBitCount(u32 maxVal) { return CBitStreamReader::GetBitCount(maxVal); }
CBitStreamWriter(atUint8* data = nullptr, atUint64 length = 0x10) : MemoryWriter(data, length) {}