aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/error.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-04-02 17:56:11 +0200
committerLuuk de Gram <luuk@degram.dev>2022-04-02 21:54:01 +0200
commit2c40b37f79b1b40b5f22e13131064bcab2191f64 (patch)
treee6cec6c137fde02857b8ced426a4e725641ae707 /test/behavior/error.zig
parentbd27fe2bf58d72dd0cdef73dd4040f2747215b78 (diff)
downloadzig-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/error.zig')
0 files changed, 0 insertions, 0 deletions