Files
wasmtime/crates
Benjamin Bouvier 04cf94cea3 runtime: fix nearest for NaN inputs;
According to wasm's spec, nearest must do the following, for NaN inputs:
- when the input is a canonical NaN, return a canonical NaN;
- when the input is a non-canonical NaN, return an arithmetic NaN.

This patch adds checks when the exponent is all ones if the input was a
NaN, and will set the significand's most significant bit in that case.
It works both for canonical inputs (which already had the bit set) and
makes other NaN inputs canonical.
2020-09-23 16:42:03 +02:00
..
2020-08-17 16:03:35 -07:00
2020-09-15 11:40:09 -07:00
2020-09-15 11:40:09 -07:00
2020-09-15 11:40:09 -07:00
2020-09-15 11:40:09 -07:00
2020-09-15 11:40:09 -07:00