We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
Feel free to submit a working PR that demonstrates that in the actual code of the project.
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: