diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-04-02 17:56:11 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-04-02 21:54:01 +0200 |
| commit | 2c40b37f79b1b40b5f22e13131064bcab2191f64 (patch) | |
| tree | e6cec6c137fde02857b8ced426a4e725641ae707 /test/behavior/floatop.zig | |
| parent | bd27fe2bf58d72dd0cdef73dd4040f2747215b78 (diff) | |
| download | zig-2c40b37f79b1b40b5f22e13131064bcab2191f64.tar.gz zig-2c40b37f79b1b40b5f22e13131064bcab2191f64.zip | |
wasm: Implement `@ctz` for bitsize <= 64
Implements the `ctz` AIR instruction for integers with bitsize <= 64.
When the bitsize of the integer does not match the bitsize of a wasm type,
we first XOR the value with the value of (1<<bitsize) to set the right bits
and ensure we will only count the trailing zeroes of the integer with the correct bitsize.
Diffstat (limited to 'test/behavior/floatop.zig')
0 files changed, 0 insertions, 0 deletions
