You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
talk about alignment. packed structs have 1 byte alignment. but if you have a pointer to a packed struct that is overaligned, zig should still understand alignment of fields when appropriate. related: ability to set alignment on struct fields #1512
mention that a load/store - especially volatile - might codegen to extra code than if you do it manually. because zig will perform a volatile store 2x, whereas manually you would do the bit shifting once and then write the entire byte at once.
The text was updated successfully, but these errors were encountered:
This issue extracted from #367
@bitCast
at comptime and@ptrCast
at comptime@byteOffsetOf
and@bitOffsetOf
The text was updated successfully, but these errors were encountered: