#[repr(transparent)]pub struct Q8E0(_);
Implementations§
source§impl Q8E0
impl Q8E0
pub const ZERO: Self = _
pub const ONE: Self = _
pub const NAR: Self = _
pub const fn init() -> Self
pub fn from_posit(p: P8E0) -> Self
pub const fn from_bits(v: u32) -> Self
pub const fn to_bits(&self) -> u32
pub const fn is_zero(&self) -> bool
pub const fn is_nar(&self) -> bool
pub fn add_product(&mut self, p_a: P8E0, p_b: P8E0)
pub fn sub_product(&mut self, p_a: P8E0, p_b: P8E0)
pub fn clear(&mut self)
pub fn neg(&mut self)
pub fn into_two_posits(self) -> (P8E0, P8E0)
pub fn into_three_posits(self) -> (P8E0, P8E0, P8E0)
Trait Implementations§
source§impl AddAssign<P8E0> for Q8E0
impl AddAssign<P8E0> for Q8E0
source§fn add_assign(&mut self, rhs: P8E0)
fn add_assign(&mut self, rhs: P8E0)
Performs the
+=
operation. Read moresource§impl MathConsts for Q8E0
impl MathConsts for Q8E0
source§const FRAC_1_SQRT_2: Self = _
const FRAC_1_SQRT_2: Self = _
1/sqrt(2) = 0.707106781186547524400844362104849039
source§const FRAC_2_SQRT_PI: Self = _
const FRAC_2_SQRT_PI: Self = _
2/sqrt(π) = 1.12837916709551257389615890312154517