mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 14:23:43 +00:00
f16/f128,u|i128, basic vector support.
This commit is contained in:
@@ -20,6 +20,17 @@ gb_inline u64 hash_pointer(void *ptr) {
|
||||
return p;
|
||||
}
|
||||
|
||||
i64 next_pow2(i64 n) {
|
||||
n--;
|
||||
n |= n >> 1;
|
||||
n |= n >> 2;
|
||||
n |= n >> 4;
|
||||
n |= n >> 8;
|
||||
n |= n >> 16;
|
||||
n |= n >> 32;
|
||||
n++;
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
#define gb_for_array(index_, array_) for (isize index_ = 0; index_ < gb_array_count(array_); index_++)
|
||||
|
||||
Reference in New Issue
Block a user