pub struct F48(/* private fields */);Expand description
A bit-level representation of a 48-bit floating-point number.
The bits are laid out as follows:
- Sign bit: 1 bit
- Exponent width: 9 bits
- Significand precision: 39 bits (38 explicitly stored)
MSB ... LSB
┌─┬╴╴┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬╴╴╴┬─┐
└─┴╴╴┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴╴╴╴┴─┘
├╴╴┘ │ ├───────────────┘ ├─────────────────────────────────────╴╴╴─┘
│ │ │ └ Significand (38 bits)
│ │ └ Exponent (9 bits)
│ └ Sign (1 bit)
└ Padding (16 bits)Trait Implementations§
Source§impl FpClassify for F48
impl FpClassify for F48
Source§impl FpFromBeBytes for F48
impl FpFromBeBytes for F48
Source§impl FpRepr for F48
impl FpRepr for F48
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 = 48u32
const SIGN_BITS: u32 = 1u32
const EXPONENT_BITS: u32 = 9u32
const SIGNIFICAND_BITS: u32 = 38u32
const EXPONENT_MAX: Self::Bits = {transmute(0x00000000000001ff): <floats::F48 as repr::FpRepr>::Bits}
const EXPONENT_BIAS: Self::Bits = {transmute(0x00000000000000ff): <floats::F48 as repr::FpRepr>::Bits}
const SIGN_MASK: Self::Bits = {transmute(0x0000800000000000): <floats::F48 as repr::FpRepr>::Bits}
const EXPONENT_MASK: Self::Bits = {transmute(0x00007fc000000000): <floats::F48 as repr::FpRepr>::Bits}
const SIGNIFICAND_MASK: Self::Bits = {transmute(0x0000003fffffffff): <floats::F48 as repr::FpRepr>::Bits}
const IMPLICIT_BIT: Self::Bits = {transmute(0x0000004000000000): <floats::F48 as repr::FpRepr>::Bits}
type Bits = u64
Source§impl FpToBeBytes for F48
impl FpToBeBytes for F48
Source§impl PartialOrd for F48
impl PartialOrd for F48
impl Copy for F48
Auto Trait Implementations§
impl Freeze for F48
impl RefUnwindSafe for F48
impl Send for F48
impl Sync for F48
impl Unpin for F48
impl UnwindSafe for F48
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