pub(crate) struct DyadicFloat128 {
pub(crate) sign: DyadicSign,
pub(crate) exponent: i16,
pub(crate) mantissa: u128,
}Fields§
§sign: DyadicSign§exponent: i16§mantissa: u128Implementations§
Source§impl DyadicFloat128
impl DyadicFloat128
pub(crate) const fn zero() -> Self
pub(crate) const fn new_from_f64(x: f64) -> Self
pub(crate) fn new(sign: DyadicSign, exponent: i16, mantissa: u128) -> Self
pub(crate) fn accurate_reciprocal(a: f64) -> Self
pub(crate) fn from_div_f64(a: f64, b: f64) -> Self
Sourcepub(crate) fn mul_int64(&self, b: i64) -> DyadicFloat128
pub(crate) fn mul_int64(&self, b: i64) -> DyadicFloat128
Multiply self by integer scalar b.
Returns a new normalized DyadicFloat128.
fn shift_right(&mut self, amount: u32)
fn shift_left(&mut self, amount: u32)
pub(crate) const fn normalize(&mut self)
pub(crate) fn negated(&self) -> Self
pub(crate) fn quick_sub(&self, rhs: &Self) -> Self
pub(crate) fn quick_add(&self, rhs: &Self) -> Self
pub(crate) fn quick_mul(&self, rhs: &Self) -> Self
pub(crate) fn fast_as_f64(&self) -> f64
pub(crate) fn reciprocal(self) -> DyadicFloat128
Source§impl DyadicFloat128
impl DyadicFloat128
pub(crate) fn biased_exponent(&self) -> i16
pub(crate) fn trunc_to_i64(&self) -> i64
pub(crate) fn round_to_nearest(&self) -> DyadicFloat128
pub(crate) fn round_to_nearest_f64(&self) -> f64
Trait Implementations§
Source§impl Add for DyadicFloat128
impl Add for DyadicFloat128
Source§type Output = DyadicFloat128
type Output = DyadicFloat128
The resulting type after applying the
+ operator.Source§impl Clone for DyadicFloat128
impl Clone for DyadicFloat128
Source§fn clone(&self) -> DyadicFloat128
fn clone(&self) -> DyadicFloat128
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DyadicFloat128
impl Debug for DyadicFloat128
Source§impl Mul for DyadicFloat128
impl Mul for DyadicFloat128
Source§type Output = DyadicFloat128
type Output = DyadicFloat128
The resulting type after applying the
* operator.Source§impl PolyevalMla for DyadicFloat128
impl PolyevalMla for DyadicFloat128
fn polyeval_mla(a: Self, b: Self, c: Self) -> Self
Source§impl Sub for DyadicFloat128
impl Sub for DyadicFloat128
Source§type Output = DyadicFloat128
type Output = DyadicFloat128
The resulting type after applying the
- operator.impl Copy for DyadicFloat128
Auto Trait Implementations§
impl Freeze for DyadicFloat128
impl RefUnwindSafe for DyadicFloat128
impl Send for DyadicFloat128
impl Sync for DyadicFloat128
impl Unpin for DyadicFloat128
impl UnsafeUnpin for DyadicFloat128
impl UnwindSafe for DyadicFloat128
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