Struct simd::x86::avx::bool8ix32 [] [src]

pub struct bool8ix32(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);

Methods

impl bool8ix32
[src]

fn to_repr(self) -> i8x32

Convert to integer representation.

fn from_repr(x: i8x32) -> Self

Convert from integer representation.

fn new(x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, x8: bool, x9: bool, x10: bool, x11: bool, x12: bool, x13: bool, x14: bool, x15: bool, x16: bool, x17: bool, x18: bool, x19: bool, x20: bool, x21: bool, x22: bool, x23: bool, x24: bool, x25: bool, x26: bool, x27: bool, x28: bool, x29: bool, x30: bool, x31: bool) -> bool8ix32

Create a new instance.

fn splat(x: bool) -> bool8ix32

Create a new instance where every lane has value x.

fn extract(self, idx: u32) -> bool

Extract the value of the idxth lane of self.

Panics

extract will panic if idx is out of bounds.

fn replace(self, idx: u32, elem: bool) -> Self

Return a new vector where the idxth lane is replaced by elem.

Panics

replace will panic if idx is out of bounds.

fn select<T: Simd<Bool=bool8ix32>>(self, then: T, else_: T) -> T

Select between elements of then and else_, based on the corresponding element of self.

This is equivalent to the following, but is possibly more efficient:

T::new(if self.extract(0) { then.extract(0) } else { else_.extract(0) },
       if self.extract(1) { then.extract(1) } else { else_.extract(1) },
       ...)

fn all(self) -> bool

Check if every element of self is true.

This is equivalent to the following, but is possibly more efficient:

self.extract(0) && self.extract(1) && ...

fn any(self) -> bool

Check if any element of self is true.

This is equivalent to the following, but is possibly more efficient:

self.extract(0) || self.extract(1) || ...

Trait Implementations

impl Simd for bool8ix32
[src]

type Bool = bool8ix32

The corresponding boolean vector type.

type Elem = bool8i

The element that this vector stores.

impl Clone for bool8ix32
[src]

fn clone(&self) -> Self

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Not for bool8ix32
[src]

type Output = Self

The resulting type after applying the ! operator

fn not(self) -> Self

The method for the unary ! operator

impl LowHigh128 for bool8ix32
[src]

type Half = bool8ix16

fn low(self) -> Self::Half

Extract the low 128 bit part.

fn high(self) -> Self::Half

Extract the high 128 bit part.

Derived Implementations

impl Copy for bool8ix32
[src]

impl Debug for bool8ix32
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.