Portable scalar float helpers from pinned interpret/intrinsics.rs. Finite FMA computes the exact product-plus-addend before its single rounding.
- floor : FloatIntegralRound
- ceil : FloatIntegralRound
- trunc : FloatIntegralRound
- away : FloatIntegralRound
- even : FloatIntegralRound
Instances For
@[instance_reducible]
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
- minimum : FloatMinMax
- maximum : FloatMinMax
- minimumNumber : FloatMinMax
- maximumNumber : FloatMinMax
Instances For
@[instance_reducible]
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Miri.Interpreter.IntrinsicFloat.abs value = do let _ ← value.decode pure { format := value.format, bits := BitVec.ofNat 128 (BitVec.toNat value.bits % 2 ^ (value.format.width - 1)) }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.IntrinsicFloat.minMax
(left right : FloatBits)
(op : FloatMinMax)
(chooseRightEqual : Bool)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.IntrinsicFloat.toIntegerChecked
(value : FloatBits)
(width : Nat)
(isSigned : Bool)
:
Checked float-to-int before source saturation: compare the truncated exact integer against bounds; NaNs and infinities cannot be represented.
Equations
- One or more equations did not get rendered due to their size.