# wasm: add support packed structs in lowerConstant · gitcafe/zig

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

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

Visibility: public

Requested revision: 2be0d5bbca5a261533b96dbc0e7bc400000e6e07

Requested commit: 2be0d5bbca5a261533b96dbc0e7bc400000e6e07

Commit: 2be0d5bbca5a261533b96dbc0e7bc400000e6e07

Tree: 5af7e57d44eda6510e37848eb4ae8f6d886e0c7d

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: add support packed structs in lowerConstant

When lowering constants of packed structs, which are smaller than 65
bits, we lower the value to an integer rather than store it in the
constant data section. This allows us to use an immediate value,
for quick loads and stores.

```

## Parents

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

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