Trait faster::intrin::PackedCmp
[−]
[src]
pub trait PackedCmp { fn max(&self, other: Self) -> Self; fn min(&self, other: Self) -> Self; }
Required Methods
fn max(&self, other: Self) -> Self
Return a vector where each element at an index i is the maximum of the
elements at index i in self
and other
.
extern crate faster; use faster::*; assert_eq!(i8s(0).max(i8s(2)), i8s(2)); assert_eq!(i8s::halfs(1, 0).max(i8s::halfs(2, -1)), i8s::halfs(2, 0));
fn min(&self, other: Self) -> Self
Return a vector where each element at an index i is the minimum of the
elements at index i in self
and other
.
extern crate faster; use faster::*; assert_eq!(i8s(0).min(i8s(2)), i8s(0)); assert_eq!(i8s::halfs(1, 0).min(i8s::halfs(2, -1)), i8s::halfs(1, -1));
Implementors
impl PackedCmp for u8x16
impl PackedCmp for i8x16
impl PackedCmp for u16x8
impl PackedCmp for i16x8
impl PackedCmp for u32x4
impl PackedCmp for i32x4
impl PackedCmp for f32x4
impl PackedCmp for f64x2
impl PackedCmp for u8x32
impl PackedCmp for i8x32
impl PackedCmp for u16x16
impl PackedCmp for i16x16
impl PackedCmp for u32x8
impl PackedCmp for i32x8
impl PackedCmp for f32x8
impl PackedCmp for f64x4