mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 06:45:47 -04:00
Add intrinsics.soa_copy_from_slice and use it within _append_soa_elems replacing the old handwritten unrolled approach
This commit is contained in:
1 parent
a38d3abbcb
commit
9914a57fc7
7 files changed
+193
-247
No files matched your search
@@ -2001,6 +2001,11 @@ gb_internal bool is_type_soa_struct(Type *t) {
|
||||
if (t == nullptr) { return false; }
|
||||
return t->kind == Type_Struct && t->Struct.soa_kind != StructSoa_None;
|
||||
}
|
||||
gb_internal bool is_type_soa_dynamic_array(Type *t) {
|
||||
t = base_type(t);
|
||||
if (t == nullptr) { return false; }
|
||||
return t->kind == Type_Struct && t->Struct.soa_kind == StructSoa_Dynamic;
|
||||
}
|
||||
|
||||
gb_internal bool is_type_raw_union(Type *t) {
|
||||
t = base_type(t);
|
||||
|
||||
Reference in new issue
Block a user