mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add prototypes for next_pow2
This commit is contained in:
@@ -35,6 +35,10 @@ gb_inline void zero_size(void *ptr, isize len) {
|
|||||||
#define zero_item(ptr) zero_size((ptr), gb_size_of(ptr))
|
#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>
|
template <typename U, typename V>
|
||||||
gb_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); }
|
gb_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user