afonso360 opened PR #4397 from interp-rounding
to main
:
:wave: Hey,
This PR implements the following operations on the interpreter:
ceil
floor
nearest
trunc
afonso360 edited PR #4397 from interp-rounding
to main
:
:wave: Hey,
This PR implements the following operations on the interpreter:
ceil
floor
nearest
trunc
cfallin submitted PR review.
afonso360 updated PR #4397 from interp-rounding
to main
.
cfallin merged PR #4397.
MaxGraey submitted PR review.
MaxGraey created PR review comment:
round
is not the same asnearest
. I think I once implemented the correct nearest in the past: https://github.com/bytecodealliance/wasmtime/pull/2171
MaxGraey edited PR review comment.
cfallin created PR review comment:
Ah, sorry I missed this... @afonso360 could you look into this further?
cfallin submitted PR review.
MaxGraey created PR review comment:
Rust has not had this operation for very many years. Here it seems someone finally want to add it:
https://github.com/rust-lang/rust/pull/95317
MaxGraey submitted PR review.
afonso360 created PR review comment:
Oh wow! Great catch!
Is there a simple way to organize the code so that we can reuse that implementation?
I'm not sure we can use nightly features in wasmtime/cranelift.
Otherwise we can probably duplicate the function pending stabilization of the rust implementation.
afonso360 submitted PR review.
Last updated: Dec 23 2024 at 12:05 UTC