diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-04-05 18:35:38 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-04-05 21:56:25 +0200 |
| commit | ac873367b9d68e1d7b4cf4e5efbe179960dc7557 (patch) | |
| tree | 97476eca40fa2619491c54c1484b4278f8ab5435 /src/ThreadPool.zig | |
| parent | 5fafcc2b629e2ff00755b2bf45e903590f04aa9f (diff) | |
| download | zig-ac873367b9d68e1d7b4cf4e5efbe179960dc7557.tar.gz zig-ac873367b9d68e1d7b4cf4e5efbe179960dc7557.zip | |
wasm: Use 'select' instruction for max/min
Rather than using blocks and control flow to check which operand is the maximum or minimum,
we use wasm's `select` instruction which returns us the operand based on a result from a comparison.
This saves us the need of control flow, as well as reduce the instruction count from 13 to 7.
Diffstat (limited to 'src/ThreadPool.zig')
0 files changed, 0 insertions, 0 deletions
