aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/array.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-03-16 22:08:25 +0100
committerLuuk de Gram <luuk@degram.dev>2022-03-17 20:41:26 +0100
commit215a22541c2a5b9886173dca86e2990ae5c649d1 (patch)
tree491fce66ba10538c36b3030351f686ca1cb98bb4 /test/behavior/array.zig
parenteafdc5562f5053ecc193041e83d3661ef0744ebb (diff)
downloadzig-215a22541c2a5b9886173dca86e2990ae5c649d1.tar.gz
zig-215a22541c2a5b9886173dca86e2990ae5c649d1.zip
wasm: Improve memset implementation
When the length is comptime-known, we perform an inline loop instead of emitting a runtime loop into the binary. This also allows us to easily write 'undefined' to aggregate types. We now do this when we set the error tag of an error union where the payload will be set to undefined.
Diffstat (limited to 'test/behavior/array.zig')
0 files changed, 0 insertions, 0 deletions