Trait faster::intrin::PackedCmp [] [src]

pub trait PackedCmp {
    fn max(&self, other: Self) -> Self;
fn min(&self, other: Self) -> Self; }

Required Methods

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));

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