diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-15 00:36:00 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-15 00:36:00 +0100 |
| commit | 018026d844c8ad3b625f019acee470dbb865d085 (patch) | |
| tree | c61e610bde307e9da891bb2c86ac0981dcd1e9da /src/common_memory.cpp | |
| parent | 139c1bcdda68c30c56ae26a9715a38074b9a1129 (diff) | |
Use `gb_zero_*` calls
Diffstat (limited to 'src/common_memory.cpp')
| -rw-r--r-- | src/common_memory.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp index 60e570eee..42a2125dc 100644 --- a/src/common_memory.cpp +++ b/src/common_memory.cpp @@ -2,13 +2,6 @@ #include <malloc.h> #endif -gb_internal gb_inline void zero_size(void *ptr, isize len) { - memset(ptr, 0, len); -} - -#define zero_item(ptr) zero_size((ptr), gb_size_of(ptr)) - - template <typename U, typename V> gb_internal gb_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); } |