Mostly exploring hashtables, some new files...

I made the files for the ast but they're not populated yet.
I made some initial implementation for raddbg flavored linked-lists.
This commit is contained in:
2024-02-29 19:37:37 -05:00
parent 1de141288f
commit 12aa6b4870
14 changed files with 223 additions and 85 deletions

View File

@ -1,5 +1,10 @@
package sectr
is_power_of_two_u32 :: proc( value : u32 ) -> b32
{
return value != 0 && ( value & ( value - 1 )) == 0
}
import "core:math/linalg"
Vec2 :: linalg.Vector2f32
@ -7,31 +12,3 @@ Vec3 :: linalg.Vector3f32
Vec2i :: [2]i32
Vec3i :: [3]i32
when false {
// TODO(Ed) : Evaluate if this is needed
Vec2 :: Vec2_f32
Vec2_f32 :: struct #raw_union {
basis : [2] f32,
using components : struct {
x, y : f32
}
}
// make_vec2 :: proc( x, y : f32 ) {
// }
Vec3 :: Vec3_f32
Vec3_f32 :: struct #raw_union {
basis : [3] f32,
using components : struct {
x, y, z : f32
}
}
}