# stage2-wasm: implement switch_dispatch \+ handle \> 32 bit integers in switches · gitcafe/zig

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

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

Visibility: public

Requested revision: b25d93e7d95418ea92b388ff8b58a04673c04539

Requested commit: b25d93e7d95418ea92b388ff8b58a04673c04539

Commit: b25d93e7d95418ea92b388ff8b58a04673c04539

Tree: 81a486b469fdffd0078d6289b1fe5390e1ab614a

Author: Pavel Verigo

Committer: Andrew Kelley

## Message

```
stage2-wasm: implement switch_dispatch + handle > 32 bit integers in switches

Updated solution is future proof for arbitary size integer handling for both strategies .br_table lowering if switch case is dense, .br_if base jump table if values are too sparse.

```

## Parents

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

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