[][src]Trait cordic::CordicNumber

pub trait CordicNumber: Copy + PartialOrd + AddAssign + SubAssign + Div<Output = Self> + Mul<Output = Self> + Neg<Output = Self> + Sub<Output = Self> + Add<Output = Self> + Shr<u8, Output = Self> + Shl<u8, Output = Self> {
    fn floor(self) -> Self;
fn zero() -> Self;
fn one() -> Self;
fn frac_pi_2() -> Self;
fn pi() -> Self;
fn e() -> Self;
fn from_u0f64(val: U0F64) -> Self;
fn num_fract_bits() -> u8;
fn num_bits() -> u8; fn half() -> Self { ... } }

A number that can be used by the CORDIC-based algorithms.

This covers most fixed-point numbers, with some restriction on the maximal number of decimal bits in order to allow some constraints (like PI) to fit.

Required methods

fn floor(self) -> Self

fn zero() -> Self

fn one() -> Self

fn frac_pi_2() -> Self

fn pi() -> Self

fn e() -> Self

fn from_u0f64(val: U0F64) -> Self

fn num_fract_bits() -> u8

fn num_bits() -> u8

Loading content...

Provided methods

fn half() -> Self

Loading content...

Implementations on Foreign Types

impl<Fract> CordicNumber for FixedI8<Fract> where
    Fract: Unsigned + IsLessOrEqual<U8, Output = True> + IsLessOrEqual<U6, Output = True> + IsLessOrEqual<U5, Output = True>, 
[src]

impl<Fract> CordicNumber for FixedI32<Fract> where
    Fract: Unsigned + IsLessOrEqual<U32, Output = True> + IsLessOrEqual<U30, Output = True> + IsLessOrEqual<U29, Output = True>, 
[src]

impl<Fract> CordicNumber for FixedI16<Fract> where
    Fract: Unsigned + IsLessOrEqual<U16, Output = True> + IsLessOrEqual<U14, Output = True> + IsLessOrEqual<U13, Output = True>, 
[src]

impl<Fract> CordicNumber for FixedI64<Fract> where
    Fract: Unsigned + IsLessOrEqual<U64, Output = True> + IsLessOrEqual<U62, Output = True> + IsLessOrEqual<U61, Output = True>, 
[src]

Loading content...

Implementors

Loading content...