Struct amplify_apfloat::ppc::FallbackS
source · [−]pub struct FallbackS<F>(_);
Trait Implementations
sourceimpl<F: Float> Semantics for FallbackS<F>
impl<F: Float> Semantics for FallbackS<F>
sourceconst PRECISION: usize = F::PRECISION * 2
const PRECISION: usize = F::PRECISION * 2
Number of bits in the significand. This includes the integer bit.
sourceconst MAX_EXP: ExpInt = F::MAX_EXP as ExpInt
const MAX_EXP: ExpInt = F::MAX_EXP as ExpInt
The largest E such that 2E is representable; this matches the definition of IEEE 754. Read more
sourceconst MIN_EXP: ExpInt = F::MIN_EXP as ExpInt + F::PRECISION as ExpInt
const MIN_EXP: ExpInt = F::MIN_EXP as ExpInt + F::PRECISION as ExpInt
The smallest E such that 2E is a normalized number; this matches the definition of IEEE 754. Read more
sourceconst QNAN_SIGNIFICAND: u256 = {
let mut ret = [0u64; LIMB_BITS / 64];
ret[Self::QNAN_BIT / 64] = 1 << (Self::QNAN_BIT % 64);
Limb::from_inner(ret)
}
const QNAN_SIGNIFICAND: u256 = { let mut ret = [0u64; LIMB_BITS / 64]; ret[Self::QNAN_BIT / 64] = 1 << (Self::QNAN_BIT % 64); Limb::from_inner(ret) }
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: u256) -> IeeeFloat<Self>
fn to_bits(x: IeeeFloat<Self>) -> u256
Auto Trait Implementations
impl<F> RefUnwindSafe for FallbackS<F> where
F: RefUnwindSafe,
impl<F> Send for FallbackS<F> where
F: Send,
impl<F> Sync for FallbackS<F> where
F: Sync,
impl<F> Unpin for FallbackS<F> where
F: Unpin,
impl<F> UnwindSafe for FallbackS<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more