2024-05-31 08:26:52 -07:00
|
|
|
package grime
|
|
|
|
|
2024-05-31 16:31:27 -07:00
|
|
|
Kilo :: Kilobyte
|
|
|
|
Mega :: Megabyte
|
|
|
|
Giga :: Gigabyte
|
|
|
|
Tera :: Terabyte
|
|
|
|
Peta :: Petabyte
|
|
|
|
Exa :: Exabyte
|
|
|
|
|
2024-05-31 08:26:52 -07:00
|
|
|
is_power_of_two_u32 :: #force_inline proc "contextless" ( value : u32 ) -> b32
|
|
|
|
{
|
|
|
|
return value != 0 && ( value & ( value - 1 )) == 0
|
|
|
|
}
|
2024-06-26 12:23:44 -07:00
|
|
|
|
|
|
|
Vec2 :: [2]f32
|
|
|
|
|
|
|
|
@(require_results) ceil_vec2 :: proc "contextless" ( v : Vec2 ) -> Vec2 { return { ceil_f32(v.x), ceil_f32(v.y) } }
|