Struct rustc_apfloat::ieee::DoubleS [−][src]
pub struct DoubleS;
Trait Implementations
impl Semantics for DoubleS
[src]
impl Semantics for DoubleS
const BITS: usize
BITS: usize = 64
Total number of bits in the in-memory format.
const PRECISION: usize
PRECISION: usize = 64 - 1 - 11 + 1
Number of bits in the significand. This includes the integer bit.
const MAX_EXP: ExpInt
MAX_EXP: ExpInt = (1 << 11 - 1) - 1
The largest E such that 2E is representable; this matches the definition of IEEE 754. Read more
const MIN_EXP: ExpInt
MIN_EXP: ExpInt = -<Self>::MAX_EXP + 1
The smallest E such that 2E is a normalized number; this matches the definition of IEEE 754. Read more
const QNAN_BIT: usize
QNAN_BIT: usize = <Self>::PRECISION - 2
The significand bit that marks NaN as quiet.
const QNAN_SIGNIFICAND: u128
QNAN_SIGNIFICAND: u128 = 1 << <Self>::QNAN_BIT
The significand bitpattern to mark a NaN as quiet. NOTE: for X87DoubleExtended we need to set two bits instead of 2. Read more
fn from_bits(bits: u128) -> IeeeFloat<Self>
[src]
fn from_bits(bits: u128) -> IeeeFloat<Self>
fn to_bits(x: IeeeFloat<Self>) -> u128
[src]
fn to_bits(x: IeeeFloat<Self>) -> u128