Progress on lifting the 'grime' module to its own package

This commit is contained in:
2024-05-31 19:31:27 -04:00
parent d63242ac9c
commit e84ec719b3
9 changed files with 68 additions and 38 deletions

View File

@ -1,5 +1,12 @@
package grime
Kilo :: Kilobyte
Mega :: Megabyte
Giga :: Gigabyte
Tera :: Terabyte
Peta :: Petabyte
Exa :: Exabyte
is_power_of_two_u32 :: #force_inline proc "contextless" ( value : u32 ) -> b32
{
return value != 0 && ( value & ( value - 1 )) == 0