aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-07-10 19:52:26 +0100
committergingerBill <bill@gingerbill.org>2021-07-10 19:52:26 +0100
commit332461c0d2703ae6dad4e0fb6812b57ffa92815e (patch)
tree7e854e871fd290988f32cc7418f6d380841fa180 /src/common.cpp
parentd8abe7fc4d9e9e98147966bb44ffff79375d12ff (diff)
Add prototypes for `next_pow2`
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
index f430e69d8..44e0158b3 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -35,6 +35,10 @@ 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);
+
+
template <typename U, typename V>
gb_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); }