aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-05-30 21:07:03 +0200
committerLuuk de Gram <luuk@degram.dev>2022-06-24 08:12:17 +0200
commit5ebaf49ebb65f3b201e56ec7d89b7d91f189409e (patch)
tree7dff0022ba12267782afe07a9236ef1e9b2f2756 /src/Compilation.zig
parent241180216f92c86f833910d73e1c86f54ae940e4 (diff)
downloadzig-5ebaf49ebb65f3b201e56ec7d89b7d91f189409e.tar.gz
zig-5ebaf49ebb65f3b201e56ec7d89b7d91f189409e.zip
wasm: Implement basic f16 support
This implements binary operations and comparisons for floats with bitsize 16. It does this by calling into compiler-rt to first extend the float to 32 bits, perform the operation, and then finally truncate back to 16 bits. When loading and storing the f16, we do this as an unsigned 16bit integer.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions