pub struct F56(/* private fields */);Expand description
A bit-level representation of a 56-bit floating-point number.
The bits are laid out as follows:
- Sign bit: 1 bit
- Exponent width: 10 bits
- Significand precision: 46 bits (45 explicitly stored)
MSB ... LSB
┌─┬╴╴┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬╴╴╴┬─┐
└─┴╴╴┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴╴╴╴┴─┘
├╴╴┘ │ ├─────────────────┘ ├───────────────────────────────────╴╴╴─┘
│ │ │ └ Significand (45 bits)
│ │ └ Exponent (10 bits)
│ └ Sign (1 bit)
└ Padding (8 bits)Trait Implementations§
Source§impl FpClassify for F56
impl FpClassify for F56
Source§impl FpFromBeBytes for F56
impl FpFromBeBytes for F56
Source§impl FpRepr for F56
impl FpRepr for F56
const ZERO: Self
const ONE: Self
const MIN: Self
const MAX: Self
const MIN_POSITIVE: Self
const INFINITY: Self
const NEG_INFINITY: Self
const BITS: u32 = 56u32
const SIGN_BITS: u32 = 1u32
const EXPONENT_BITS: u32 = 10u32
const SIGNIFICAND_BITS: u32 = 45u32
const EXPONENT_MAX: Self::Bits = {transmute(0x00000000000003ff): <floats::F56 as repr::FpRepr>::Bits}
const EXPONENT_BIAS: Self::Bits = {transmute(0x00000000000001ff): <floats::F56 as repr::FpRepr>::Bits}
const SIGN_MASK: Self::Bits = {transmute(0x0080000000000000): <floats::F56 as repr::FpRepr>::Bits}
const EXPONENT_MASK: Self::Bits = {transmute(0x007fe00000000000): <floats::F56 as repr::FpRepr>::Bits}
const SIGNIFICAND_MASK: Self::Bits = {transmute(0x00001fffffffffff): <floats::F56 as repr::FpRepr>::Bits}
const IMPLICIT_BIT: Self::Bits = {transmute(0x0000200000000000): <floats::F56 as repr::FpRepr>::Bits}
type Bits = u64
Source§impl FpToBeBytes for F56
impl FpToBeBytes for F56
Source§impl PartialOrd for F56
impl PartialOrd for F56
impl Copy for F56
Auto Trait Implementations§
impl Freeze for F56
impl RefUnwindSafe for F56
impl Send for F56
impl Sync for F56
impl Unpin for F56
impl UnwindSafe for F56
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more