# wasm: support non-natural alignment in load/store · gitcafe/zig

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

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

Visibility: public

Requested revision: 6924f21bbd81683b0889994ce86aa0ae22e5b317

Requested commit: 6924f21bbd81683b0889994ce86aa0ae22e5b317

Commit: 6924f21bbd81683b0889994ce86aa0ae22e5b317

Tree: a78d5cf5efbe86a6f21856ab9cdbb1a5113b5c49

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: support non-natural alignment in load/store

This implements support for loading and storing where the lhs is
of pointer type with host_size != 0. e.g. when loading a specific
field from a packed struct with a non-byte alignment such as (0:1:3).

```

## Parents

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

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