beetrees opened PR #8982 from beetrees:ieee-refactor
to bytecodealliance:main
:
Deduplicate the
Ieee{16,32,64,128}
implementations using a macro.The only methods/trait impls removed are:
- The inherent
neg()
method onIeee32
andIeee64
: This was redundant to theNeg
trait implementation (whose method is also calledneg
). Anywhere that want to callx.neg()
instead of-x
can still do so byuse
ingcore::ops::Neg
.impl From<u64> for Ieee64
: This only existed forIeee64
, was redundant toIeee64::with_bits
, and was only used in one place in a test. Using eitherIeee64::with_bits
or theFrom<f64> for Ieee64
impl as required is much clearer about intent.
beetrees requested elliottt for a review on PR #8982.
beetrees requested wasmtime-compiler-reviewers for a review on PR #8982.
elliottt submitted PR review:
This is a nice refactoring, thanks!
elliottt merged PR #8982.
Last updated: Nov 22 2024 at 17:03 UTC