Move zero_size

This commit is contained in:
gingerBill
2020-05-27 18:26:20 +01:00
parent 1a0614b0d7
commit e84406a895

View File

@@ -28,6 +28,13 @@
#include <math.h>
#include <string.h>
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_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); }
@@ -347,12 +354,6 @@ void mul_overflow_u64(u64 x, u64 y, u64 *lo, u64 *hi) {
#endif
}
gb_inline void zero_size(void *ptr, isize len) {
memset(ptr, 0, len);
}
#define zero_item(ptr) zero_size((ptr), gb_size_of(ptr))
gb_global String global_module_path = {0};