# stage2: initial implementation of packed structs · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5b171f446f46c97de111bce0575452be0334a05e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5b171f446f46c97de111bce0575452be0334a05e

Requested commit: 5b171f446f46c97de111bce0575452be0334a05e

Commit: 5b171f446f46c97de111bce0575452be0334a05e

Tree: c3ce543696892a846f21241863c07c62f2fcf7f2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: initial implementation of packed structs

Layout algorithm: all `align(0)` fields are squished together as if they
were a single integer with a number of bits equal to `@bitSizeOf` each
field added together. Then the natural ABI alignment of that integer is
used for that pseudo-field.

```

## Parents

- [3763580e1e734b558499df5512f6a165f6db988b](https://git.cafe/gitcafe/zig/commit/3763580e1e734b558499df5512f6a165f6db988b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5b171f446f46c97de111bce0575452be0334a05e?format=markdown)
