Files
wasmtime/crates/runtime/src
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-07 10:08:44 -07:00
2020-06-15 15:39:26 -07:00
2020-07-02 16:59:07 -07:00