On this page

0179: f64 in the IR and a libm-free runtime

Status: Proposed (pending maintainer)

Context

Integer arithmetic flows through Rvalue::Arith, Neg and Convert, which the range prover (ADR-0066), byte-class lowering and map fusion read with integer assumptions. Generated programs link no libraries (no -lm).

Decision

Consequences

The interpreter stores Value::F64(bits). Backends agree on every operation because each is correctly rounded IEEE or exact. A future Ty::F32 would reuse Rvalue::Float with a width.

Alternatives