mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
the current implementation only works when the struct is in a register. we use some shifting magic to get the field into the LSB, and from there, given the type provenance, the generated code should never reach into the bits beyond the bit size of the type and interact with the rest of the struct.