Struct std::simd::m1x64 [−][src]
A 64-bit vector mask with 64 lanes (FIXME: 512-bit wide).
Methods
impl m1x64
[src]
[−]
impl m1x64
pub const 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,
x32: bool,
x33: bool,
x34: bool,
x35: bool,
x36: bool,
x37: bool,
x38: bool,
x39: bool,
x40: bool,
x41: bool,
x42: bool,
x43: bool,
x44: bool,
x45: bool,
x46: bool,
x47: bool,
x48: bool,
x49: bool,
x50: bool,
x51: bool,
x52: bool,
x53: bool,
x54: bool,
x55: bool,
x56: bool,
x57: bool,
x58: bool,
x59: bool,
x60: bool,
x61: bool,
x62: bool,
x63: bool
) -> m1x64
[src]
[−]
pub const 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,
x32: bool,
x33: bool,
x34: bool,
x35: bool,
x36: bool,
x37: bool,
x38: bool,
x39: bool,
x40: bool,
x41: bool,
x42: bool,
x43: bool,
x44: bool,
x45: bool,
x46: bool,
x47: bool,
x48: bool,
x49: bool,
x50: bool,
x51: bool,
x52: bool,
x53: bool,
x54: bool,
x55: bool,
x56: bool,
x57: bool,
x58: bool,
x59: bool,
x60: bool,
x61: bool,
x62: bool,
x63: bool
) -> m1x64
Creates a new instance with each vector elements initialized with the provided values.
pub const fn lanes() -> usize
[src]
[−]
pub const fn lanes() -> usize
Returns the number of vector lanes.
pub const fn splat(value: bool) -> m1x64
[src]
[−]
pub const fn splat(value: bool) -> m1x64
Constructs a new instance with each element initialized to
value
.
pub fn extract(self, index: usize) -> bool
[src]
[−]
pub fn extract(self, index: usize) -> bool
pub unsafe fn extract_unchecked(self, index: usize) -> bool
[src]
[−]
pub unsafe fn extract_unchecked(self, index: usize) -> bool
Extracts the value at index
.
If index >= Self::lanes()
the behavior is undefined.
pub fn replace(self, index: usize, new_value: bool) -> m1x64
[src]
[−]
pub fn replace(self, index: usize, new_value: bool) -> m1x64
Returns a new vector where the value at index
is replaced by new_value
.
Panics
If index >= Self::lanes()
.
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> m1x64
[src]
[−]
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> m1x64
Returns a new vector where the value at index
is replaced by new_value
.
Panics
If index >= Self::lanes()
.
impl m1x64
[src]
[−]
impl m1x64
pub fn and(self) -> bool
[src]
[−]
pub fn and(self) -> bool
Lane-wise bitwise and
of the vector elements.
pub fn or(self) -> bool
[src]
[−]
pub fn or(self) -> bool
Lane-wise bitwise or
of the vector elements.
pub fn xor(self) -> bool
[src]
[−]
pub fn xor(self) -> bool
Lane-wise bitwise xor
of the vector elements.
impl m1x64
[src]
[−]
impl m1x64
pub fn all(self) -> bool
[src]
[−]
pub fn all(self) -> bool
Are all
vector lanes true
?
pub fn any(self) -> bool
[src]
[−]
pub fn any(self) -> bool
Is any
vector lanes true
?
pub fn none(self) -> bool
[src]
[−]
pub fn none(self) -> bool
Are all
vector lanes false
?
impl m1x64
[src]
[−]
impl m1x64
pub fn select<T>(self, a: T, b: T) -> T where
T: Lanes<[u32; 64]>,
[src]
[−]
pub fn select<T>(self, a: T, b: T) -> T where
T: Lanes<[u32; 64]>,
Selects elements of a
and b
using mask.
For each lane, the result contains the element of a
if the
mask is true, and the element of b
otherwise.
impl m1x64
[src]
[−]
impl m1x64
pub fn eq(self, other: m1x64) -> m1x64
[src]
[−]
pub fn eq(self, other: m1x64) -> m1x64
Lane-wise equality comparison.
pub fn ne(self, other: m1x64) -> m1x64
[src]
[−]
pub fn ne(self, other: m1x64) -> m1x64
Lane-wise inequality comparison.
pub fn lt(self, other: m1x64) -> m1x64
[src]
[−]
pub fn lt(self, other: m1x64) -> m1x64
Lane-wise less-than comparison.
pub fn le(self, other: m1x64) -> m1x64
[src]
[−]
pub fn le(self, other: m1x64) -> m1x64
Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: m1x64) -> m1x64
[src]
[−]
pub fn gt(self, other: m1x64) -> m1x64
Lane-wise greater-than comparison.
pub fn ge(self, other: m1x64) -> m1x64
[src]
[−]
pub fn ge(self, other: m1x64) -> m1x64
Lane-wise greater-than-or-equals comparison.
Trait Implementations
impl BitAnd<m1x64> for m1x64
[src]
[+]
impl BitAnd<m1x64> for m1x64
impl BitAnd<m1x64> for bool
[src]
[+]
impl BitAnd<m1x64> for bool
impl BitAnd<bool> for m1x64
[src]
[+]
impl BitAnd<bool> for m1x64
impl Debug for m1x64
[src]
[+]
impl Debug for m1x64
impl Default for m1x64
[src]
[+]
impl Default for m1x64
impl BitXorAssign<m1x64> for m1x64
[src]
[+]
impl BitXorAssign<m1x64> for m1x64
impl BitXorAssign<bool> for m1x64
[src]
[+]
impl BitXorAssign<bool> for m1x64
impl BitOrAssign<bool> for m1x64
[src]
[+]
impl BitOrAssign<bool> for m1x64
impl BitOrAssign<m1x64> for m1x64
[src]
[+]
impl BitOrAssign<m1x64> for m1x64
impl BitAndAssign<m1x64> for m1x64
[src]
[+]
impl BitAndAssign<m1x64> for m1x64
impl BitAndAssign<bool> for m1x64
[src]
[+]
impl BitAndAssign<bool> for m1x64
impl BitOr<m1x64> for m1x64
[src]
[+]
impl BitOr<m1x64> for m1x64
impl BitOr<m1x64> for bool
[src]
[+]
impl BitOr<m1x64> for bool
impl BitOr<bool> for m1x64
[src]
[+]
impl BitOr<bool> for m1x64
impl Copy for m1x64
[src]
impl Copy for m1x64
impl From<m1x64> for i8x64
[src]
[+]
impl From<m1x64> for i8x64
impl From<m1x64> for u8x64
[src]
[+]
impl From<m1x64> for u8x64
impl Clone for m1x64
[src]
[+]
impl Clone for m1x64
impl PartialOrd<m1x64> for m1x64
[src]
[+]
impl PartialOrd<m1x64> for m1x64
impl BitXor<bool> for m1x64
[src]
[+]
impl BitXor<bool> for m1x64
impl BitXor<m1x64> for bool
[src]
[+]
impl BitXor<m1x64> for bool
impl BitXor<m1x64> for m1x64
[src]
[+]
impl BitXor<m1x64> for m1x64
impl Not for m1x64
[src]
[+]
impl Not for m1x64
impl Eq for m1x64
[src]
impl Eq for m1x64
impl PartialEq<m1x64> for m1x64
[src]
[+]
impl PartialEq<m1x64> for m1x64
impl FromBits<m1x64> for f32x16
[src]
[+]
impl FromBits<m1x64> for f32x16
impl FromBits<m1x64> for i32x16
[src]
[+]
impl FromBits<m1x64> for i32x16
impl FromBits<m1x64> for i16x32
[src]
[+]
impl FromBits<m1x64> for i16x32
impl FromBits<m1x64> for u16x32
[src]
[+]
impl FromBits<m1x64> for u16x32
impl FromBits<m1x64> for u8x64
[src]
[+]
impl FromBits<m1x64> for u8x64
impl FromBits<m1x64> for f64x8
[src]
[+]
impl FromBits<m1x64> for f64x8
impl FromBits<m1x64> for u32x16
[src]
[+]
impl FromBits<m1x64> for u32x16
impl FromBits<m1x64> for u64x8
[src]
[+]
impl FromBits<m1x64> for u64x8
impl FromBits<m1x64> for i8x64
[src]
[+]
impl FromBits<m1x64> for i8x64
impl FromBits<m1x64> for i64x8
[src]
[+]
impl FromBits<m1x64> for i64x8