#[repr(transparent)]pub struct Q16E1(_);
Implementations§
source§impl Q16E1
impl Q16E1
pub const ZERO: Self = _
pub const ONE: Self = _
pub const NAR: Self = _
pub const fn init() -> Self
pub fn from_posit(p: P16E1) -> Self
pub const fn from_bits(v: u128) -> Self
pub const fn to_bits(&self) -> u128
pub const fn is_zero(&self) -> bool
pub const fn is_nar(&self) -> bool
pub fn add_product(&mut self, p_a: P16E1, p_b: P16E1)
pub fn sub_product(&mut self, p_a: P16E1, p_b: P16E1)
pub fn clear(&mut self)
pub fn neg(&mut self)
pub fn into_two_posits(self) -> (P16E1, P16E1)
pub fn into_three_posits(self) -> (P16E1, P16E1, P16E1)
Trait Implementations§
source§impl AddAssign<P16E1> for Q16E1
impl AddAssign<P16E1> for Q16E1
source§fn add_assign(&mut self, rhs: P16E1)
fn add_assign(&mut self, rhs: P16E1)
Performs the
+=
operation. Read moresource§impl MathConsts for Q16E1
impl MathConsts for Q16E1
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