pub(crate) trait FloatSIMDUtils {
    type Mask;
    type UInt;

    // Required methods
    fn all_lt(self, other: Self) -> bool;
    fn all_le(self, other: Self) -> bool;
    fn all_finite(self) -> bool;
    fn finite_mask(self) -> Self::Mask;
    fn gt_mask(self, other: Self) -> Self::Mask;
    fn ge_mask(self, other: Self) -> Self::Mask;
    fn decrease_masked(self, mask: Self::Mask) -> Self;
    fn cast_from_int(i: Self::UInt) -> Self;
}
Expand description

Helper trait when dealing with scalar and SIMD floating point types.

Required Associated Types§

Required Methods§

source

fn all_lt(self, other: Self) -> bool

source

fn all_le(self, other: Self) -> bool

source

fn all_finite(self) -> bool

source

fn finite_mask(self) -> Self::Mask

source

fn gt_mask(self, other: Self) -> Self::Mask

source

fn ge_mask(self, other: Self) -> Self::Mask

source

fn decrease_masked(self, mask: Self::Mask) -> Self

source

fn cast_from_int(i: Self::UInt) -> Self

Implementations on Foreign Types§

source§

impl FloatSIMDUtils for f64

§

type Mask = bool

§

type UInt = u64

source§

fn all_lt(self, other: Self) -> bool

source§

fn all_le(self, other: Self) -> bool

source§

fn all_finite(self) -> bool

source§

fn finite_mask(self) -> Self::Mask

source§

fn gt_mask(self, other: Self) -> Self::Mask

source§

fn ge_mask(self, other: Self) -> Self::Mask

source§

fn decrease_masked(self, mask: Self::Mask) -> Self

source§

fn cast_from_int(i: Self::UInt) -> Self

source§

impl FloatSIMDUtils for f32

§

type Mask = bool

§

type UInt = u32

source§

fn all_lt(self, other: Self) -> bool

source§

fn all_le(self, other: Self) -> bool

source§

fn all_finite(self) -> bool

source§

fn finite_mask(self) -> Self::Mask

source§

fn gt_mask(self, other: Self) -> Self::Mask

source§

fn ge_mask(self, other: Self) -> Self::Mask

source§

fn decrease_masked(self, mask: Self::Mask) -> Self

source§

fn cast_from_int(i: Self::UInt) -> Self

Implementors§