Trait rustc_apfloat::ieee::Semantics
source · pub trait Semantics: Sized {
const BITS: usize;
const PRECISION: usize;
const MAX_EXP: ExpInt;
const MIN_EXP: ExpInt = _;
const QNAN_BIT: usize = _;
const QNAN_SIGNIFICAND: u128 = _;
fn from_bits(bits: u128) -> IeeeFloat<Self> { ... }
fn to_bits(x: IeeeFloat<Self>) -> u128 { ... }
}
Expand description
Represents floating point arithmetic semantics.
Required Associated Constants§
Provided Associated Constants§
sourceconst MIN_EXP: ExpInt = _
const MIN_EXP: ExpInt = _
The smallest E such that 2E is a normalized number; this matches the definition of IEEE 754.
sourceconst QNAN_SIGNIFICAND: u128 = _
const QNAN_SIGNIFICAND: u128 = _
The significand bitpattern to mark a NaN as quiet. NOTE: for X87DoubleExtended we need to set two bits instead of 2.