diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-26 15:41:32 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-26 15:41:32 +0100 |
| commit | 3e4d615983f76616b5a598b89b75aa84975a4aab (patch) | |
| tree | 304f5b8a33d5bfa74f0364f42aa4cc4eaedaf5f6 /src/common_memory.cpp | |
| parent | aa8777ee47f503eb90d4e2225274d0d20a9b39a3 (diff) | |
Minor fixes
Diffstat (limited to 'src/common_memory.cpp')
| -rw-r--r-- | src/common_memory.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp index ef46dcaa6..afdcb2dee 100644 --- a/src/common_memory.cpp +++ b/src/common_memory.cpp @@ -6,11 +6,6 @@ gb_inline void zero_size(void *ptr, isize len) { #define zero_item(ptr) zero_size((ptr), gb_size_of(ptr)) -i32 next_pow2(i32 n); -i64 next_pow2(i64 n); -isize next_pow2_isize(isize n); -void debugf(char const *fmt, ...); - template <typename U, typename V> gb_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); } @@ -64,7 +59,6 @@ struct MemoryBlock { struct Arena { MemoryBlock * curr_block; isize minimum_block_size; - isize temporary_memory_count; }; enum { DEFAULT_MINIMUM_BLOCK_SIZE = 8ll*1024ll*1024ll }; @@ -213,7 +207,7 @@ void platform_virtual_memory_init(void) { } -MemoryBlock *virtual_memory_alloc(isize size, MemoryBlockFlags flags) { +MemoryBlock *virtual_memory_alloc(isize size) { return nullptr; } |