Beginning to lift the "grime" files to their own pacakge

This commit is contained in:
2024-05-31 11:26:52 -04:00
parent 65386372fc
commit 3998776f4b
27 changed files with 428 additions and 154 deletions

6
code/grime/math.odin Normal file
View File

@ -0,0 +1,6 @@
package grime
is_power_of_two_u32 :: #force_inline proc "contextless" ( value : u32 ) -> b32
{
return value != 0 && ( value & ( value - 1 )) == 0
}