# wasm: optimize & simplify sign extension · gitcafe/zig

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

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

Visibility: public

Requested revision: f05e09a0cf7870fda463d9a0ceb42be4c3100825

Requested commit: f05e09a0cf7870fda463d9a0ceb42be4c3100825

Commit: f05e09a0cf7870fda463d9a0ceb42be4c3100825

Tree: 858b5107d90a97392b5765a318672b276531feb7

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: optimize & simplify sign extension

Rather than storing all the shifts in temporaries, we perform the correct
shifting without temporaries. This makes the runtime code more performant
and also the backend code is simplified as we have a singular abstraction.

```

## Parents

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

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