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 onIeee32andIeee64: This was redundant to theNegtrait implementation (whose method is also calledneg). Anywhere that want to callx.neg()instead of-xcan still do so byuseingcore::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_bitsor theFrom<f64> for Ieee64impl 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: Dec 06 2025 at 06:05 UTC