-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
from alignment search c3 website:
A non-packed struct has the alignment of the member that has the highest alignment.
A packed struct has alignment 1.
https://c3-lang.org/references/docs/specification/#align-attribute
for details on changing the alignment.
struct Foo @align(8)
{
int a;
}
uint a = Foo.alignof; // 8
macro new_aligned($Type, ...) @NODISCARD
macro new_array_aligned($Type, usz elements) @NODISCARD
So if you want to use VectorN specify an acceptible alignment for wasm?
spikeysnack
Metadata
Metadata
Assignees
Labels
No labels