// Copyright 2025 the Fearless_SIMD Authors // SPDX-License-Identifier: Apache-2.0 OR MIT // This file is autogenerated by fearless_simd_gen use crate::{Simd, SimdInto}; use crate::{ f32x4, f32x8, f32x16, f64x2, f64x4, f64x8, i8x16, i8x32, i8x64, i16x8, i16x16, i16x32, i32x4, i32x8, i32x16, mask8x16, mask8x32, mask8x64, mask16x8, mask16x16, mask16x32, mask32x4, mask32x8, mask32x16, mask64x2, mask64x4, mask64x8, u8x16, u8x32, u8x64, u16x8, u16x16, u16x32, u32x4, u32x8, u32x16, }; impl core::ops::Neg for f32x4 { type Output = Self; #[doc = "Negate each element of the vector."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_f32x4(self) } } impl core::ops::Add for f32x4 { type Output = Self; #[doc = "Add two vectors element-wise."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_f32x4(self, rhs) } } impl core::ops::AddAssign for f32x4 { #[doc = "Add two vectors element-wise."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_f32x4(*self, rhs); } } impl core::ops::Add for f32x4 { type Output = Self; #[inline(always)] fn add(self, rhs: f32) -> Self::Output { self.simd.add_f32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for f32x4 { #[inline(always)] fn add_assign(&mut self, rhs: f32) { *self = self.simd.add_f32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for f32 { type Output = f32x4; #[inline(always)] fn add(self, rhs: f32x4) -> Self::Output { rhs.simd.add_f32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for f32x4 { type Output = Self; #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_f32x4(self, rhs) } } impl core::ops::SubAssign for f32x4 { #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_f32x4(*self, rhs); } } impl core::ops::Sub for f32x4 { type Output = Self; #[inline(always)] fn sub(self, rhs: f32) -> Self::Output { self.simd.sub_f32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for f32x4 { #[inline(always)] fn sub_assign(&mut self, rhs: f32) { *self = self.simd.sub_f32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for f32 { type Output = f32x4; #[inline(always)] fn sub(self, rhs: f32x4) -> Self::Output { rhs.simd.sub_f32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for f32x4 { type Output = Self; #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_f32x4(self, rhs) } } impl core::ops::MulAssign for f32x4 { #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_f32x4(*self, rhs); } } impl core::ops::Mul for f32x4 { type Output = Self; #[inline(always)] fn mul(self, rhs: f32) -> Self::Output { self.simd.mul_f32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for f32x4 { #[inline(always)] fn mul_assign(&mut self, rhs: f32) { *self = self.simd.mul_f32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for f32 { type Output = f32x4; #[inline(always)] fn mul(self, rhs: f32x4) -> Self::Output { rhs.simd.mul_f32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Div for f32x4 { type Output = Self; #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div(self, rhs: Self) -> Self::Output { self.simd.div_f32x4(self, rhs) } } impl core::ops::DivAssign for f32x4 { #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div_assign(&mut self, rhs: Self) { *self = self.simd.div_f32x4(*self, rhs); } } impl core::ops::Div for f32x4 { type Output = Self; #[inline(always)] fn div(self, rhs: f32) -> Self::Output { self.simd.div_f32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::DivAssign for f32x4 { #[inline(always)] fn div_assign(&mut self, rhs: f32) { *self = self.simd.div_f32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Div> for f32 { type Output = f32x4; #[inline(always)] fn div(self, rhs: f32x4) -> Self::Output { rhs.simd.div_f32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Neg for i8x16 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i8x16(self) } } impl core::ops::Add for i8x16 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i8x16(self, rhs) } } impl core::ops::AddAssign for i8x16 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i8x16(*self, rhs); } } impl core::ops::Add for i8x16 { type Output = Self; #[inline(always)] fn add(self, rhs: i8) -> Self::Output { self.simd.add_i8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i8x16 { #[inline(always)] fn add_assign(&mut self, rhs: i8) { *self = self.simd.add_i8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i8 { type Output = i8x16; #[inline(always)] fn add(self, rhs: i8x16) -> Self::Output { rhs.simd.add_i8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i8x16 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i8x16(self, rhs) } } impl core::ops::SubAssign for i8x16 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i8x16(*self, rhs); } } impl core::ops::Sub for i8x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: i8) -> Self::Output { self.simd.sub_i8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i8x16 { #[inline(always)] fn sub_assign(&mut self, rhs: i8) { *self = self.simd.sub_i8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i8 { type Output = i8x16; #[inline(always)] fn sub(self, rhs: i8x16) -> Self::Output { rhs.simd.sub_i8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i8x16 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i8x16(self, rhs) } } impl core::ops::MulAssign for i8x16 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i8x16(*self, rhs); } } impl core::ops::Mul for i8x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: i8) -> Self::Output { self.simd.mul_i8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i8x16 { #[inline(always)] fn mul_assign(&mut self, rhs: i8) { *self = self.simd.mul_i8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i8 { type Output = i8x16; #[inline(always)] fn mul(self, rhs: i8x16) -> Self::Output { rhs.simd.mul_i8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i8x16 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i8x16(self, rhs) } } impl core::ops::BitAndAssign for i8x16 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i8x16(*self, rhs); } } impl core::ops::BitAnd for i8x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i8) -> Self::Output { self.simd.and_i8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i8x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: i8) { *self = self.simd.and_i8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i8 { type Output = i8x16; #[inline(always)] fn bitand(self, rhs: i8x16) -> Self::Output { rhs.simd.and_i8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i8x16 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i8x16(self, rhs) } } impl core::ops::BitOrAssign for i8x16 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i8x16(*self, rhs); } } impl core::ops::BitOr for i8x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i8) -> Self::Output { self.simd.or_i8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i8x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: i8) { *self = self.simd.or_i8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i8 { type Output = i8x16; #[inline(always)] fn bitor(self, rhs: i8x16) -> Self::Output { rhs.simd.or_i8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i8x16 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i8x16(self, rhs) } } impl core::ops::BitXorAssign for i8x16 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i8x16(*self, rhs); } } impl core::ops::BitXor for i8x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i8) -> Self::Output { self.simd.xor_i8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i8x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i8) { *self = self.simd.xor_i8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i8 { type Output = i8x16; #[inline(always)] fn bitxor(self, rhs: i8x16) -> Self::Output { rhs.simd.xor_i8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i8x16 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i8x16(self) } } impl core::ops::Shl for i8x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i8x16(self, rhs) } } impl core::ops::ShlAssign for i8x16 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i8x16(*self, rhs); } } impl core::ops::Shl for i8x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i8x16(self, rhs) } } impl core::ops::ShlAssign for i8x16 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i8x16(*self, rhs); } } impl core::ops::Shr for i8x16 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i8x16(self, rhs) } } impl core::ops::ShrAssign for i8x16 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i8x16(*self, rhs); } } impl core::ops::Shr for i8x16 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i8x16(self, rhs) } } impl core::ops::ShrAssign for i8x16 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i8x16(*self, rhs); } } impl core::ops::Add for u8x16 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u8x16(self, rhs) } } impl core::ops::AddAssign for u8x16 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u8x16(*self, rhs); } } impl core::ops::Add for u8x16 { type Output = Self; #[inline(always)] fn add(self, rhs: u8) -> Self::Output { self.simd.add_u8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u8x16 { #[inline(always)] fn add_assign(&mut self, rhs: u8) { *self = self.simd.add_u8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u8 { type Output = u8x16; #[inline(always)] fn add(self, rhs: u8x16) -> Self::Output { rhs.simd.add_u8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u8x16 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u8x16(self, rhs) } } impl core::ops::SubAssign for u8x16 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u8x16(*self, rhs); } } impl core::ops::Sub for u8x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: u8) -> Self::Output { self.simd.sub_u8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u8x16 { #[inline(always)] fn sub_assign(&mut self, rhs: u8) { *self = self.simd.sub_u8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u8 { type Output = u8x16; #[inline(always)] fn sub(self, rhs: u8x16) -> Self::Output { rhs.simd.sub_u8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u8x16 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u8x16(self, rhs) } } impl core::ops::MulAssign for u8x16 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u8x16(*self, rhs); } } impl core::ops::Mul for u8x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: u8) -> Self::Output { self.simd.mul_u8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u8x16 { #[inline(always)] fn mul_assign(&mut self, rhs: u8) { *self = self.simd.mul_u8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u8 { type Output = u8x16; #[inline(always)] fn mul(self, rhs: u8x16) -> Self::Output { rhs.simd.mul_u8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u8x16 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u8x16(self, rhs) } } impl core::ops::BitAndAssign for u8x16 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u8x16(*self, rhs); } } impl core::ops::BitAnd for u8x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u8) -> Self::Output { self.simd.and_u8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u8x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: u8) { *self = self.simd.and_u8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u8 { type Output = u8x16; #[inline(always)] fn bitand(self, rhs: u8x16) -> Self::Output { rhs.simd.and_u8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u8x16 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u8x16(self, rhs) } } impl core::ops::BitOrAssign for u8x16 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u8x16(*self, rhs); } } impl core::ops::BitOr for u8x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u8) -> Self::Output { self.simd.or_u8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u8x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: u8) { *self = self.simd.or_u8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u8 { type Output = u8x16; #[inline(always)] fn bitor(self, rhs: u8x16) -> Self::Output { rhs.simd.or_u8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u8x16 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u8x16(self, rhs) } } impl core::ops::BitXorAssign for u8x16 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u8x16(*self, rhs); } } impl core::ops::BitXor for u8x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u8) -> Self::Output { self.simd.xor_u8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u8x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u8) { *self = self.simd.xor_u8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u8 { type Output = u8x16; #[inline(always)] fn bitxor(self, rhs: u8x16) -> Self::Output { rhs.simd.xor_u8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u8x16 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u8x16(self) } } impl core::ops::Shl for u8x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u8x16(self, rhs) } } impl core::ops::ShlAssign for u8x16 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u8x16(*self, rhs); } } impl core::ops::Shl for u8x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u8x16(self, rhs) } } impl core::ops::ShlAssign for u8x16 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u8x16(*self, rhs); } } impl core::ops::Shr for u8x16 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u8x16(self, rhs) } } impl core::ops::ShrAssign for u8x16 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u8x16(*self, rhs); } } impl core::ops::Shr for u8x16 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u8x16(self, rhs) } } impl core::ops::ShrAssign for u8x16 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u8x16(*self, rhs); } } impl core::ops::BitAnd for mask8x16 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask8x16(self, rhs) } } impl core::ops::BitAndAssign for mask8x16 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask8x16(*self, rhs); } } impl core::ops::BitAnd for mask8x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i8) -> Self::Output { self.simd.and_mask8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask8x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: i8) { *self = self.simd.and_mask8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i8 { type Output = mask8x16; #[inline(always)] fn bitand(self, rhs: mask8x16) -> Self::Output { rhs.simd.and_mask8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask8x16 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask8x16(self, rhs) } } impl core::ops::BitOrAssign for mask8x16 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask8x16(*self, rhs); } } impl core::ops::BitOr for mask8x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i8) -> Self::Output { self.simd.or_mask8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask8x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: i8) { *self = self.simd.or_mask8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i8 { type Output = mask8x16; #[inline(always)] fn bitor(self, rhs: mask8x16) -> Self::Output { rhs.simd.or_mask8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask8x16 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask8x16(self, rhs) } } impl core::ops::BitXorAssign for mask8x16 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask8x16(*self, rhs); } } impl core::ops::BitXor for mask8x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i8) -> Self::Output { self.simd.xor_mask8x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask8x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i8) { *self = self.simd.xor_mask8x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i8 { type Output = mask8x16; #[inline(always)] fn bitxor(self, rhs: mask8x16) -> Self::Output { rhs.simd.xor_mask8x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask8x16 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask8x16(self) } } impl core::ops::Neg for i16x8 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i16x8(self) } } impl core::ops::Add for i16x8 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i16x8(self, rhs) } } impl core::ops::AddAssign for i16x8 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i16x8(*self, rhs); } } impl core::ops::Add for i16x8 { type Output = Self; #[inline(always)] fn add(self, rhs: i16) -> Self::Output { self.simd.add_i16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i16x8 { #[inline(always)] fn add_assign(&mut self, rhs: i16) { *self = self.simd.add_i16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i16 { type Output = i16x8; #[inline(always)] fn add(self, rhs: i16x8) -> Self::Output { rhs.simd.add_i16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i16x8 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i16x8(self, rhs) } } impl core::ops::SubAssign for i16x8 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i16x8(*self, rhs); } } impl core::ops::Sub for i16x8 { type Output = Self; #[inline(always)] fn sub(self, rhs: i16) -> Self::Output { self.simd.sub_i16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i16x8 { #[inline(always)] fn sub_assign(&mut self, rhs: i16) { *self = self.simd.sub_i16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i16 { type Output = i16x8; #[inline(always)] fn sub(self, rhs: i16x8) -> Self::Output { rhs.simd.sub_i16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i16x8 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i16x8(self, rhs) } } impl core::ops::MulAssign for i16x8 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i16x8(*self, rhs); } } impl core::ops::Mul for i16x8 { type Output = Self; #[inline(always)] fn mul(self, rhs: i16) -> Self::Output { self.simd.mul_i16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i16x8 { #[inline(always)] fn mul_assign(&mut self, rhs: i16) { *self = self.simd.mul_i16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i16 { type Output = i16x8; #[inline(always)] fn mul(self, rhs: i16x8) -> Self::Output { rhs.simd.mul_i16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i16x8 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i16x8(self, rhs) } } impl core::ops::BitAndAssign for i16x8 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i16x8(*self, rhs); } } impl core::ops::BitAnd for i16x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i16) -> Self::Output { self.simd.and_i16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i16x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: i16) { *self = self.simd.and_i16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i16 { type Output = i16x8; #[inline(always)] fn bitand(self, rhs: i16x8) -> Self::Output { rhs.simd.and_i16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i16x8 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i16x8(self, rhs) } } impl core::ops::BitOrAssign for i16x8 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i16x8(*self, rhs); } } impl core::ops::BitOr for i16x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i16) -> Self::Output { self.simd.or_i16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i16x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: i16) { *self = self.simd.or_i16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i16 { type Output = i16x8; #[inline(always)] fn bitor(self, rhs: i16x8) -> Self::Output { rhs.simd.or_i16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i16x8 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i16x8(self, rhs) } } impl core::ops::BitXorAssign for i16x8 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i16x8(*self, rhs); } } impl core::ops::BitXor for i16x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i16) -> Self::Output { self.simd.xor_i16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i16x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i16) { *self = self.simd.xor_i16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i16 { type Output = i16x8; #[inline(always)] fn bitxor(self, rhs: i16x8) -> Self::Output { rhs.simd.xor_i16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i16x8 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i16x8(self) } } impl core::ops::Shl for i16x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i16x8(self, rhs) } } impl core::ops::ShlAssign for i16x8 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i16x8(*self, rhs); } } impl core::ops::Shl for i16x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i16x8(self, rhs) } } impl core::ops::ShlAssign for i16x8 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i16x8(*self, rhs); } } impl core::ops::Shr for i16x8 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i16x8(self, rhs) } } impl core::ops::ShrAssign for i16x8 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i16x8(*self, rhs); } } impl core::ops::Shr for i16x8 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i16x8(self, rhs) } } impl core::ops::ShrAssign for i16x8 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i16x8(*self, rhs); } } impl core::ops::Add for u16x8 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u16x8(self, rhs) } } impl core::ops::AddAssign for u16x8 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u16x8(*self, rhs); } } impl core::ops::Add for u16x8 { type Output = Self; #[inline(always)] fn add(self, rhs: u16) -> Self::Output { self.simd.add_u16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u16x8 { #[inline(always)] fn add_assign(&mut self, rhs: u16) { *self = self.simd.add_u16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u16 { type Output = u16x8; #[inline(always)] fn add(self, rhs: u16x8) -> Self::Output { rhs.simd.add_u16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u16x8 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u16x8(self, rhs) } } impl core::ops::SubAssign for u16x8 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u16x8(*self, rhs); } } impl core::ops::Sub for u16x8 { type Output = Self; #[inline(always)] fn sub(self, rhs: u16) -> Self::Output { self.simd.sub_u16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u16x8 { #[inline(always)] fn sub_assign(&mut self, rhs: u16) { *self = self.simd.sub_u16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u16 { type Output = u16x8; #[inline(always)] fn sub(self, rhs: u16x8) -> Self::Output { rhs.simd.sub_u16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u16x8 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u16x8(self, rhs) } } impl core::ops::MulAssign for u16x8 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u16x8(*self, rhs); } } impl core::ops::Mul for u16x8 { type Output = Self; #[inline(always)] fn mul(self, rhs: u16) -> Self::Output { self.simd.mul_u16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u16x8 { #[inline(always)] fn mul_assign(&mut self, rhs: u16) { *self = self.simd.mul_u16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u16 { type Output = u16x8; #[inline(always)] fn mul(self, rhs: u16x8) -> Self::Output { rhs.simd.mul_u16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u16x8 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u16x8(self, rhs) } } impl core::ops::BitAndAssign for u16x8 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u16x8(*self, rhs); } } impl core::ops::BitAnd for u16x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u16) -> Self::Output { self.simd.and_u16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u16x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: u16) { *self = self.simd.and_u16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u16 { type Output = u16x8; #[inline(always)] fn bitand(self, rhs: u16x8) -> Self::Output { rhs.simd.and_u16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u16x8 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u16x8(self, rhs) } } impl core::ops::BitOrAssign for u16x8 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u16x8(*self, rhs); } } impl core::ops::BitOr for u16x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u16) -> Self::Output { self.simd.or_u16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u16x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: u16) { *self = self.simd.or_u16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u16 { type Output = u16x8; #[inline(always)] fn bitor(self, rhs: u16x8) -> Self::Output { rhs.simd.or_u16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u16x8 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u16x8(self, rhs) } } impl core::ops::BitXorAssign for u16x8 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u16x8(*self, rhs); } } impl core::ops::BitXor for u16x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u16) -> Self::Output { self.simd.xor_u16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u16x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u16) { *self = self.simd.xor_u16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u16 { type Output = u16x8; #[inline(always)] fn bitxor(self, rhs: u16x8) -> Self::Output { rhs.simd.xor_u16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u16x8 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u16x8(self) } } impl core::ops::Shl for u16x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u16x8(self, rhs) } } impl core::ops::ShlAssign for u16x8 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u16x8(*self, rhs); } } impl core::ops::Shl for u16x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u16x8(self, rhs) } } impl core::ops::ShlAssign for u16x8 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u16x8(*self, rhs); } } impl core::ops::Shr for u16x8 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u16x8(self, rhs) } } impl core::ops::ShrAssign for u16x8 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u16x8(*self, rhs); } } impl core::ops::Shr for u16x8 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u16x8(self, rhs) } } impl core::ops::ShrAssign for u16x8 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u16x8(*self, rhs); } } impl core::ops::BitAnd for mask16x8 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask16x8(self, rhs) } } impl core::ops::BitAndAssign for mask16x8 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask16x8(*self, rhs); } } impl core::ops::BitAnd for mask16x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i16) -> Self::Output { self.simd.and_mask16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask16x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: i16) { *self = self.simd.and_mask16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i16 { type Output = mask16x8; #[inline(always)] fn bitand(self, rhs: mask16x8) -> Self::Output { rhs.simd.and_mask16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask16x8 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask16x8(self, rhs) } } impl core::ops::BitOrAssign for mask16x8 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask16x8(*self, rhs); } } impl core::ops::BitOr for mask16x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i16) -> Self::Output { self.simd.or_mask16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask16x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: i16) { *self = self.simd.or_mask16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i16 { type Output = mask16x8; #[inline(always)] fn bitor(self, rhs: mask16x8) -> Self::Output { rhs.simd.or_mask16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask16x8 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask16x8(self, rhs) } } impl core::ops::BitXorAssign for mask16x8 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask16x8(*self, rhs); } } impl core::ops::BitXor for mask16x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i16) -> Self::Output { self.simd.xor_mask16x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask16x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i16) { *self = self.simd.xor_mask16x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i16 { type Output = mask16x8; #[inline(always)] fn bitxor(self, rhs: mask16x8) -> Self::Output { rhs.simd.xor_mask16x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask16x8 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask16x8(self) } } impl core::ops::Neg for i32x4 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i32x4(self) } } impl core::ops::Add for i32x4 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i32x4(self, rhs) } } impl core::ops::AddAssign for i32x4 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i32x4(*self, rhs); } } impl core::ops::Add for i32x4 { type Output = Self; #[inline(always)] fn add(self, rhs: i32) -> Self::Output { self.simd.add_i32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i32x4 { #[inline(always)] fn add_assign(&mut self, rhs: i32) { *self = self.simd.add_i32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i32 { type Output = i32x4; #[inline(always)] fn add(self, rhs: i32x4) -> Self::Output { rhs.simd.add_i32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i32x4 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i32x4(self, rhs) } } impl core::ops::SubAssign for i32x4 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i32x4(*self, rhs); } } impl core::ops::Sub for i32x4 { type Output = Self; #[inline(always)] fn sub(self, rhs: i32) -> Self::Output { self.simd.sub_i32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i32x4 { #[inline(always)] fn sub_assign(&mut self, rhs: i32) { *self = self.simd.sub_i32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i32 { type Output = i32x4; #[inline(always)] fn sub(self, rhs: i32x4) -> Self::Output { rhs.simd.sub_i32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i32x4 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i32x4(self, rhs) } } impl core::ops::MulAssign for i32x4 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i32x4(*self, rhs); } } impl core::ops::Mul for i32x4 { type Output = Self; #[inline(always)] fn mul(self, rhs: i32) -> Self::Output { self.simd.mul_i32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i32x4 { #[inline(always)] fn mul_assign(&mut self, rhs: i32) { *self = self.simd.mul_i32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i32 { type Output = i32x4; #[inline(always)] fn mul(self, rhs: i32x4) -> Self::Output { rhs.simd.mul_i32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i32x4 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i32x4(self, rhs) } } impl core::ops::BitAndAssign for i32x4 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i32x4(*self, rhs); } } impl core::ops::BitAnd for i32x4 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i32) -> Self::Output { self.simd.and_i32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i32x4 { #[inline(always)] fn bitand_assign(&mut self, rhs: i32) { *self = self.simd.and_i32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i32 { type Output = i32x4; #[inline(always)] fn bitand(self, rhs: i32x4) -> Self::Output { rhs.simd.and_i32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i32x4 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i32x4(self, rhs) } } impl core::ops::BitOrAssign for i32x4 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i32x4(*self, rhs); } } impl core::ops::BitOr for i32x4 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i32) -> Self::Output { self.simd.or_i32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i32x4 { #[inline(always)] fn bitor_assign(&mut self, rhs: i32) { *self = self.simd.or_i32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i32 { type Output = i32x4; #[inline(always)] fn bitor(self, rhs: i32x4) -> Self::Output { rhs.simd.or_i32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i32x4 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i32x4(self, rhs) } } impl core::ops::BitXorAssign for i32x4 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i32x4(*self, rhs); } } impl core::ops::BitXor for i32x4 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i32) -> Self::Output { self.simd.xor_i32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i32x4 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i32) { *self = self.simd.xor_i32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i32 { type Output = i32x4; #[inline(always)] fn bitxor(self, rhs: i32x4) -> Self::Output { rhs.simd.xor_i32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i32x4 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i32x4(self) } } impl core::ops::Shl for i32x4 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i32x4(self, rhs) } } impl core::ops::ShlAssign for i32x4 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i32x4(*self, rhs); } } impl core::ops::Shl for i32x4 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i32x4(self, rhs) } } impl core::ops::ShlAssign for i32x4 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i32x4(*self, rhs); } } impl core::ops::Shr for i32x4 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i32x4(self, rhs) } } impl core::ops::ShrAssign for i32x4 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i32x4(*self, rhs); } } impl core::ops::Shr for i32x4 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i32x4(self, rhs) } } impl core::ops::ShrAssign for i32x4 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i32x4(*self, rhs); } } impl core::ops::Add for u32x4 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u32x4(self, rhs) } } impl core::ops::AddAssign for u32x4 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u32x4(*self, rhs); } } impl core::ops::Add for u32x4 { type Output = Self; #[inline(always)] fn add(self, rhs: u32) -> Self::Output { self.simd.add_u32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u32x4 { #[inline(always)] fn add_assign(&mut self, rhs: u32) { *self = self.simd.add_u32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u32 { type Output = u32x4; #[inline(always)] fn add(self, rhs: u32x4) -> Self::Output { rhs.simd.add_u32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u32x4 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u32x4(self, rhs) } } impl core::ops::SubAssign for u32x4 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u32x4(*self, rhs); } } impl core::ops::Sub for u32x4 { type Output = Self; #[inline(always)] fn sub(self, rhs: u32) -> Self::Output { self.simd.sub_u32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u32x4 { #[inline(always)] fn sub_assign(&mut self, rhs: u32) { *self = self.simd.sub_u32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u32 { type Output = u32x4; #[inline(always)] fn sub(self, rhs: u32x4) -> Self::Output { rhs.simd.sub_u32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u32x4 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u32x4(self, rhs) } } impl core::ops::MulAssign for u32x4 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u32x4(*self, rhs); } } impl core::ops::Mul for u32x4 { type Output = Self; #[inline(always)] fn mul(self, rhs: u32) -> Self::Output { self.simd.mul_u32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u32x4 { #[inline(always)] fn mul_assign(&mut self, rhs: u32) { *self = self.simd.mul_u32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u32 { type Output = u32x4; #[inline(always)] fn mul(self, rhs: u32x4) -> Self::Output { rhs.simd.mul_u32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u32x4 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u32x4(self, rhs) } } impl core::ops::BitAndAssign for u32x4 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u32x4(*self, rhs); } } impl core::ops::BitAnd for u32x4 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u32) -> Self::Output { self.simd.and_u32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u32x4 { #[inline(always)] fn bitand_assign(&mut self, rhs: u32) { *self = self.simd.and_u32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u32 { type Output = u32x4; #[inline(always)] fn bitand(self, rhs: u32x4) -> Self::Output { rhs.simd.and_u32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u32x4 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u32x4(self, rhs) } } impl core::ops::BitOrAssign for u32x4 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u32x4(*self, rhs); } } impl core::ops::BitOr for u32x4 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u32) -> Self::Output { self.simd.or_u32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u32x4 { #[inline(always)] fn bitor_assign(&mut self, rhs: u32) { *self = self.simd.or_u32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u32 { type Output = u32x4; #[inline(always)] fn bitor(self, rhs: u32x4) -> Self::Output { rhs.simd.or_u32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u32x4 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u32x4(self, rhs) } } impl core::ops::BitXorAssign for u32x4 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u32x4(*self, rhs); } } impl core::ops::BitXor for u32x4 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u32) -> Self::Output { self.simd.xor_u32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u32x4 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u32) { *self = self.simd.xor_u32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u32 { type Output = u32x4; #[inline(always)] fn bitxor(self, rhs: u32x4) -> Self::Output { rhs.simd.xor_u32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u32x4 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u32x4(self) } } impl core::ops::Shl for u32x4 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u32x4(self, rhs) } } impl core::ops::ShlAssign for u32x4 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u32x4(*self, rhs); } } impl core::ops::Shl for u32x4 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u32x4(self, rhs) } } impl core::ops::ShlAssign for u32x4 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u32x4(*self, rhs); } } impl core::ops::Shr for u32x4 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u32x4(self, rhs) } } impl core::ops::ShrAssign for u32x4 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u32x4(*self, rhs); } } impl core::ops::Shr for u32x4 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u32x4(self, rhs) } } impl core::ops::ShrAssign for u32x4 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u32x4(*self, rhs); } } impl core::ops::BitAnd for mask32x4 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask32x4(self, rhs) } } impl core::ops::BitAndAssign for mask32x4 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask32x4(*self, rhs); } } impl core::ops::BitAnd for mask32x4 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i32) -> Self::Output { self.simd.and_mask32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask32x4 { #[inline(always)] fn bitand_assign(&mut self, rhs: i32) { *self = self.simd.and_mask32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i32 { type Output = mask32x4; #[inline(always)] fn bitand(self, rhs: mask32x4) -> Self::Output { rhs.simd.and_mask32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask32x4 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask32x4(self, rhs) } } impl core::ops::BitOrAssign for mask32x4 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask32x4(*self, rhs); } } impl core::ops::BitOr for mask32x4 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i32) -> Self::Output { self.simd.or_mask32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask32x4 { #[inline(always)] fn bitor_assign(&mut self, rhs: i32) { *self = self.simd.or_mask32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i32 { type Output = mask32x4; #[inline(always)] fn bitor(self, rhs: mask32x4) -> Self::Output { rhs.simd.or_mask32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask32x4 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask32x4(self, rhs) } } impl core::ops::BitXorAssign for mask32x4 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask32x4(*self, rhs); } } impl core::ops::BitXor for mask32x4 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i32) -> Self::Output { self.simd.xor_mask32x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask32x4 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i32) { *self = self.simd.xor_mask32x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i32 { type Output = mask32x4; #[inline(always)] fn bitxor(self, rhs: mask32x4) -> Self::Output { rhs.simd.xor_mask32x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask32x4 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask32x4(self) } } impl core::ops::Neg for f64x2 { type Output = Self; #[doc = "Negate each element of the vector."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_f64x2(self) } } impl core::ops::Add for f64x2 { type Output = Self; #[doc = "Add two vectors element-wise."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_f64x2(self, rhs) } } impl core::ops::AddAssign for f64x2 { #[doc = "Add two vectors element-wise."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_f64x2(*self, rhs); } } impl core::ops::Add for f64x2 { type Output = Self; #[inline(always)] fn add(self, rhs: f64) -> Self::Output { self.simd.add_f64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for f64x2 { #[inline(always)] fn add_assign(&mut self, rhs: f64) { *self = self.simd.add_f64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for f64 { type Output = f64x2; #[inline(always)] fn add(self, rhs: f64x2) -> Self::Output { rhs.simd.add_f64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for f64x2 { type Output = Self; #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_f64x2(self, rhs) } } impl core::ops::SubAssign for f64x2 { #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_f64x2(*self, rhs); } } impl core::ops::Sub for f64x2 { type Output = Self; #[inline(always)] fn sub(self, rhs: f64) -> Self::Output { self.simd.sub_f64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for f64x2 { #[inline(always)] fn sub_assign(&mut self, rhs: f64) { *self = self.simd.sub_f64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for f64 { type Output = f64x2; #[inline(always)] fn sub(self, rhs: f64x2) -> Self::Output { rhs.simd.sub_f64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for f64x2 { type Output = Self; #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_f64x2(self, rhs) } } impl core::ops::MulAssign for f64x2 { #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_f64x2(*self, rhs); } } impl core::ops::Mul for f64x2 { type Output = Self; #[inline(always)] fn mul(self, rhs: f64) -> Self::Output { self.simd.mul_f64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for f64x2 { #[inline(always)] fn mul_assign(&mut self, rhs: f64) { *self = self.simd.mul_f64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for f64 { type Output = f64x2; #[inline(always)] fn mul(self, rhs: f64x2) -> Self::Output { rhs.simd.mul_f64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::Div for f64x2 { type Output = Self; #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div(self, rhs: Self) -> Self::Output { self.simd.div_f64x2(self, rhs) } } impl core::ops::DivAssign for f64x2 { #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div_assign(&mut self, rhs: Self) { *self = self.simd.div_f64x2(*self, rhs); } } impl core::ops::Div for f64x2 { type Output = Self; #[inline(always)] fn div(self, rhs: f64) -> Self::Output { self.simd.div_f64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::DivAssign for f64x2 { #[inline(always)] fn div_assign(&mut self, rhs: f64) { *self = self.simd.div_f64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::Div> for f64 { type Output = f64x2; #[inline(always)] fn div(self, rhs: f64x2) -> Self::Output { rhs.simd.div_f64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for mask64x2 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask64x2(self, rhs) } } impl core::ops::BitAndAssign for mask64x2 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask64x2(*self, rhs); } } impl core::ops::BitAnd for mask64x2 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i64) -> Self::Output { self.simd.and_mask64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask64x2 { #[inline(always)] fn bitand_assign(&mut self, rhs: i64) { *self = self.simd.and_mask64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i64 { type Output = mask64x2; #[inline(always)] fn bitand(self, rhs: mask64x2) -> Self::Output { rhs.simd.and_mask64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask64x2 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask64x2(self, rhs) } } impl core::ops::BitOrAssign for mask64x2 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask64x2(*self, rhs); } } impl core::ops::BitOr for mask64x2 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i64) -> Self::Output { self.simd.or_mask64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask64x2 { #[inline(always)] fn bitor_assign(&mut self, rhs: i64) { *self = self.simd.or_mask64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i64 { type Output = mask64x2; #[inline(always)] fn bitor(self, rhs: mask64x2) -> Self::Output { rhs.simd.or_mask64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask64x2 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask64x2(self, rhs) } } impl core::ops::BitXorAssign for mask64x2 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask64x2(*self, rhs); } } impl core::ops::BitXor for mask64x2 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i64) -> Self::Output { self.simd.xor_mask64x2(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask64x2 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i64) { *self = self.simd.xor_mask64x2(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i64 { type Output = mask64x2; #[inline(always)] fn bitxor(self, rhs: mask64x2) -> Self::Output { rhs.simd.xor_mask64x2(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask64x2 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask64x2(self) } } impl core::ops::Neg for f32x8 { type Output = Self; #[doc = "Negate each element of the vector."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_f32x8(self) } } impl core::ops::Add for f32x8 { type Output = Self; #[doc = "Add two vectors element-wise."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_f32x8(self, rhs) } } impl core::ops::AddAssign for f32x8 { #[doc = "Add two vectors element-wise."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_f32x8(*self, rhs); } } impl core::ops::Add for f32x8 { type Output = Self; #[inline(always)] fn add(self, rhs: f32) -> Self::Output { self.simd.add_f32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for f32x8 { #[inline(always)] fn add_assign(&mut self, rhs: f32) { *self = self.simd.add_f32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for f32 { type Output = f32x8; #[inline(always)] fn add(self, rhs: f32x8) -> Self::Output { rhs.simd.add_f32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for f32x8 { type Output = Self; #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_f32x8(self, rhs) } } impl core::ops::SubAssign for f32x8 { #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_f32x8(*self, rhs); } } impl core::ops::Sub for f32x8 { type Output = Self; #[inline(always)] fn sub(self, rhs: f32) -> Self::Output { self.simd.sub_f32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for f32x8 { #[inline(always)] fn sub_assign(&mut self, rhs: f32) { *self = self.simd.sub_f32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for f32 { type Output = f32x8; #[inline(always)] fn sub(self, rhs: f32x8) -> Self::Output { rhs.simd.sub_f32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for f32x8 { type Output = Self; #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_f32x8(self, rhs) } } impl core::ops::MulAssign for f32x8 { #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_f32x8(*self, rhs); } } impl core::ops::Mul for f32x8 { type Output = Self; #[inline(always)] fn mul(self, rhs: f32) -> Self::Output { self.simd.mul_f32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for f32x8 { #[inline(always)] fn mul_assign(&mut self, rhs: f32) { *self = self.simd.mul_f32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for f32 { type Output = f32x8; #[inline(always)] fn mul(self, rhs: f32x8) -> Self::Output { rhs.simd.mul_f32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Div for f32x8 { type Output = Self; #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div(self, rhs: Self) -> Self::Output { self.simd.div_f32x8(self, rhs) } } impl core::ops::DivAssign for f32x8 { #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div_assign(&mut self, rhs: Self) { *self = self.simd.div_f32x8(*self, rhs); } } impl core::ops::Div for f32x8 { type Output = Self; #[inline(always)] fn div(self, rhs: f32) -> Self::Output { self.simd.div_f32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::DivAssign for f32x8 { #[inline(always)] fn div_assign(&mut self, rhs: f32) { *self = self.simd.div_f32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Div> for f32 { type Output = f32x8; #[inline(always)] fn div(self, rhs: f32x8) -> Self::Output { rhs.simd.div_f32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Neg for i8x32 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i8x32(self) } } impl core::ops::Add for i8x32 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i8x32(self, rhs) } } impl core::ops::AddAssign for i8x32 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i8x32(*self, rhs); } } impl core::ops::Add for i8x32 { type Output = Self; #[inline(always)] fn add(self, rhs: i8) -> Self::Output { self.simd.add_i8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i8x32 { #[inline(always)] fn add_assign(&mut self, rhs: i8) { *self = self.simd.add_i8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i8 { type Output = i8x32; #[inline(always)] fn add(self, rhs: i8x32) -> Self::Output { rhs.simd.add_i8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i8x32 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i8x32(self, rhs) } } impl core::ops::SubAssign for i8x32 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i8x32(*self, rhs); } } impl core::ops::Sub for i8x32 { type Output = Self; #[inline(always)] fn sub(self, rhs: i8) -> Self::Output { self.simd.sub_i8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i8x32 { #[inline(always)] fn sub_assign(&mut self, rhs: i8) { *self = self.simd.sub_i8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i8 { type Output = i8x32; #[inline(always)] fn sub(self, rhs: i8x32) -> Self::Output { rhs.simd.sub_i8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i8x32 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i8x32(self, rhs) } } impl core::ops::MulAssign for i8x32 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i8x32(*self, rhs); } } impl core::ops::Mul for i8x32 { type Output = Self; #[inline(always)] fn mul(self, rhs: i8) -> Self::Output { self.simd.mul_i8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i8x32 { #[inline(always)] fn mul_assign(&mut self, rhs: i8) { *self = self.simd.mul_i8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i8 { type Output = i8x32; #[inline(always)] fn mul(self, rhs: i8x32) -> Self::Output { rhs.simd.mul_i8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i8x32 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i8x32(self, rhs) } } impl core::ops::BitAndAssign for i8x32 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i8x32(*self, rhs); } } impl core::ops::BitAnd for i8x32 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i8) -> Self::Output { self.simd.and_i8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i8x32 { #[inline(always)] fn bitand_assign(&mut self, rhs: i8) { *self = self.simd.and_i8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i8 { type Output = i8x32; #[inline(always)] fn bitand(self, rhs: i8x32) -> Self::Output { rhs.simd.and_i8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i8x32 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i8x32(self, rhs) } } impl core::ops::BitOrAssign for i8x32 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i8x32(*self, rhs); } } impl core::ops::BitOr for i8x32 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i8) -> Self::Output { self.simd.or_i8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i8x32 { #[inline(always)] fn bitor_assign(&mut self, rhs: i8) { *self = self.simd.or_i8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i8 { type Output = i8x32; #[inline(always)] fn bitor(self, rhs: i8x32) -> Self::Output { rhs.simd.or_i8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i8x32 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i8x32(self, rhs) } } impl core::ops::BitXorAssign for i8x32 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i8x32(*self, rhs); } } impl core::ops::BitXor for i8x32 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i8) -> Self::Output { self.simd.xor_i8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i8x32 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i8) { *self = self.simd.xor_i8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i8 { type Output = i8x32; #[inline(always)] fn bitxor(self, rhs: i8x32) -> Self::Output { rhs.simd.xor_i8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i8x32 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i8x32(self) } } impl core::ops::Shl for i8x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i8x32(self, rhs) } } impl core::ops::ShlAssign for i8x32 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i8x32(*self, rhs); } } impl core::ops::Shl for i8x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i8x32(self, rhs) } } impl core::ops::ShlAssign for i8x32 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i8x32(*self, rhs); } } impl core::ops::Shr for i8x32 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i8x32(self, rhs) } } impl core::ops::ShrAssign for i8x32 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i8x32(*self, rhs); } } impl core::ops::Shr for i8x32 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i8x32(self, rhs) } } impl core::ops::ShrAssign for i8x32 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i8x32(*self, rhs); } } impl core::ops::Add for u8x32 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u8x32(self, rhs) } } impl core::ops::AddAssign for u8x32 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u8x32(*self, rhs); } } impl core::ops::Add for u8x32 { type Output = Self; #[inline(always)] fn add(self, rhs: u8) -> Self::Output { self.simd.add_u8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u8x32 { #[inline(always)] fn add_assign(&mut self, rhs: u8) { *self = self.simd.add_u8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u8 { type Output = u8x32; #[inline(always)] fn add(self, rhs: u8x32) -> Self::Output { rhs.simd.add_u8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u8x32 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u8x32(self, rhs) } } impl core::ops::SubAssign for u8x32 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u8x32(*self, rhs); } } impl core::ops::Sub for u8x32 { type Output = Self; #[inline(always)] fn sub(self, rhs: u8) -> Self::Output { self.simd.sub_u8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u8x32 { #[inline(always)] fn sub_assign(&mut self, rhs: u8) { *self = self.simd.sub_u8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u8 { type Output = u8x32; #[inline(always)] fn sub(self, rhs: u8x32) -> Self::Output { rhs.simd.sub_u8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u8x32 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u8x32(self, rhs) } } impl core::ops::MulAssign for u8x32 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u8x32(*self, rhs); } } impl core::ops::Mul for u8x32 { type Output = Self; #[inline(always)] fn mul(self, rhs: u8) -> Self::Output { self.simd.mul_u8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u8x32 { #[inline(always)] fn mul_assign(&mut self, rhs: u8) { *self = self.simd.mul_u8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u8 { type Output = u8x32; #[inline(always)] fn mul(self, rhs: u8x32) -> Self::Output { rhs.simd.mul_u8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u8x32 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u8x32(self, rhs) } } impl core::ops::BitAndAssign for u8x32 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u8x32(*self, rhs); } } impl core::ops::BitAnd for u8x32 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u8) -> Self::Output { self.simd.and_u8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u8x32 { #[inline(always)] fn bitand_assign(&mut self, rhs: u8) { *self = self.simd.and_u8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u8 { type Output = u8x32; #[inline(always)] fn bitand(self, rhs: u8x32) -> Self::Output { rhs.simd.and_u8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u8x32 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u8x32(self, rhs) } } impl core::ops::BitOrAssign for u8x32 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u8x32(*self, rhs); } } impl core::ops::BitOr for u8x32 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u8) -> Self::Output { self.simd.or_u8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u8x32 { #[inline(always)] fn bitor_assign(&mut self, rhs: u8) { *self = self.simd.or_u8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u8 { type Output = u8x32; #[inline(always)] fn bitor(self, rhs: u8x32) -> Self::Output { rhs.simd.or_u8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u8x32 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u8x32(self, rhs) } } impl core::ops::BitXorAssign for u8x32 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u8x32(*self, rhs); } } impl core::ops::BitXor for u8x32 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u8) -> Self::Output { self.simd.xor_u8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u8x32 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u8) { *self = self.simd.xor_u8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u8 { type Output = u8x32; #[inline(always)] fn bitxor(self, rhs: u8x32) -> Self::Output { rhs.simd.xor_u8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u8x32 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u8x32(self) } } impl core::ops::Shl for u8x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u8x32(self, rhs) } } impl core::ops::ShlAssign for u8x32 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u8x32(*self, rhs); } } impl core::ops::Shl for u8x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u8x32(self, rhs) } } impl core::ops::ShlAssign for u8x32 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u8x32(*self, rhs); } } impl core::ops::Shr for u8x32 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u8x32(self, rhs) } } impl core::ops::ShrAssign for u8x32 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u8x32(*self, rhs); } } impl core::ops::Shr for u8x32 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u8x32(self, rhs) } } impl core::ops::ShrAssign for u8x32 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u8x32(*self, rhs); } } impl core::ops::BitAnd for mask8x32 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask8x32(self, rhs) } } impl core::ops::BitAndAssign for mask8x32 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask8x32(*self, rhs); } } impl core::ops::BitAnd for mask8x32 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i8) -> Self::Output { self.simd.and_mask8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask8x32 { #[inline(always)] fn bitand_assign(&mut self, rhs: i8) { *self = self.simd.and_mask8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i8 { type Output = mask8x32; #[inline(always)] fn bitand(self, rhs: mask8x32) -> Self::Output { rhs.simd.and_mask8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask8x32 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask8x32(self, rhs) } } impl core::ops::BitOrAssign for mask8x32 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask8x32(*self, rhs); } } impl core::ops::BitOr for mask8x32 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i8) -> Self::Output { self.simd.or_mask8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask8x32 { #[inline(always)] fn bitor_assign(&mut self, rhs: i8) { *self = self.simd.or_mask8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i8 { type Output = mask8x32; #[inline(always)] fn bitor(self, rhs: mask8x32) -> Self::Output { rhs.simd.or_mask8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask8x32 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask8x32(self, rhs) } } impl core::ops::BitXorAssign for mask8x32 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask8x32(*self, rhs); } } impl core::ops::BitXor for mask8x32 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i8) -> Self::Output { self.simd.xor_mask8x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask8x32 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i8) { *self = self.simd.xor_mask8x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i8 { type Output = mask8x32; #[inline(always)] fn bitxor(self, rhs: mask8x32) -> Self::Output { rhs.simd.xor_mask8x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask8x32 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask8x32(self) } } impl core::ops::Neg for i16x16 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i16x16(self) } } impl core::ops::Add for i16x16 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i16x16(self, rhs) } } impl core::ops::AddAssign for i16x16 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i16x16(*self, rhs); } } impl core::ops::Add for i16x16 { type Output = Self; #[inline(always)] fn add(self, rhs: i16) -> Self::Output { self.simd.add_i16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i16x16 { #[inline(always)] fn add_assign(&mut self, rhs: i16) { *self = self.simd.add_i16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i16 { type Output = i16x16; #[inline(always)] fn add(self, rhs: i16x16) -> Self::Output { rhs.simd.add_i16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i16x16 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i16x16(self, rhs) } } impl core::ops::SubAssign for i16x16 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i16x16(*self, rhs); } } impl core::ops::Sub for i16x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: i16) -> Self::Output { self.simd.sub_i16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i16x16 { #[inline(always)] fn sub_assign(&mut self, rhs: i16) { *self = self.simd.sub_i16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i16 { type Output = i16x16; #[inline(always)] fn sub(self, rhs: i16x16) -> Self::Output { rhs.simd.sub_i16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i16x16 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i16x16(self, rhs) } } impl core::ops::MulAssign for i16x16 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i16x16(*self, rhs); } } impl core::ops::Mul for i16x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: i16) -> Self::Output { self.simd.mul_i16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i16x16 { #[inline(always)] fn mul_assign(&mut self, rhs: i16) { *self = self.simd.mul_i16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i16 { type Output = i16x16; #[inline(always)] fn mul(self, rhs: i16x16) -> Self::Output { rhs.simd.mul_i16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i16x16 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i16x16(self, rhs) } } impl core::ops::BitAndAssign for i16x16 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i16x16(*self, rhs); } } impl core::ops::BitAnd for i16x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i16) -> Self::Output { self.simd.and_i16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i16x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: i16) { *self = self.simd.and_i16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i16 { type Output = i16x16; #[inline(always)] fn bitand(self, rhs: i16x16) -> Self::Output { rhs.simd.and_i16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i16x16 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i16x16(self, rhs) } } impl core::ops::BitOrAssign for i16x16 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i16x16(*self, rhs); } } impl core::ops::BitOr for i16x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i16) -> Self::Output { self.simd.or_i16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i16x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: i16) { *self = self.simd.or_i16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i16 { type Output = i16x16; #[inline(always)] fn bitor(self, rhs: i16x16) -> Self::Output { rhs.simd.or_i16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i16x16 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i16x16(self, rhs) } } impl core::ops::BitXorAssign for i16x16 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i16x16(*self, rhs); } } impl core::ops::BitXor for i16x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i16) -> Self::Output { self.simd.xor_i16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i16x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i16) { *self = self.simd.xor_i16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i16 { type Output = i16x16; #[inline(always)] fn bitxor(self, rhs: i16x16) -> Self::Output { rhs.simd.xor_i16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i16x16 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i16x16(self) } } impl core::ops::Shl for i16x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i16x16(self, rhs) } } impl core::ops::ShlAssign for i16x16 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i16x16(*self, rhs); } } impl core::ops::Shl for i16x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i16x16(self, rhs) } } impl core::ops::ShlAssign for i16x16 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i16x16(*self, rhs); } } impl core::ops::Shr for i16x16 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i16x16(self, rhs) } } impl core::ops::ShrAssign for i16x16 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i16x16(*self, rhs); } } impl core::ops::Shr for i16x16 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i16x16(self, rhs) } } impl core::ops::ShrAssign for i16x16 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i16x16(*self, rhs); } } impl core::ops::Add for u16x16 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u16x16(self, rhs) } } impl core::ops::AddAssign for u16x16 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u16x16(*self, rhs); } } impl core::ops::Add for u16x16 { type Output = Self; #[inline(always)] fn add(self, rhs: u16) -> Self::Output { self.simd.add_u16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u16x16 { #[inline(always)] fn add_assign(&mut self, rhs: u16) { *self = self.simd.add_u16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u16 { type Output = u16x16; #[inline(always)] fn add(self, rhs: u16x16) -> Self::Output { rhs.simd.add_u16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u16x16 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u16x16(self, rhs) } } impl core::ops::SubAssign for u16x16 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u16x16(*self, rhs); } } impl core::ops::Sub for u16x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: u16) -> Self::Output { self.simd.sub_u16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u16x16 { #[inline(always)] fn sub_assign(&mut self, rhs: u16) { *self = self.simd.sub_u16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u16 { type Output = u16x16; #[inline(always)] fn sub(self, rhs: u16x16) -> Self::Output { rhs.simd.sub_u16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u16x16 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u16x16(self, rhs) } } impl core::ops::MulAssign for u16x16 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u16x16(*self, rhs); } } impl core::ops::Mul for u16x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: u16) -> Self::Output { self.simd.mul_u16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u16x16 { #[inline(always)] fn mul_assign(&mut self, rhs: u16) { *self = self.simd.mul_u16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u16 { type Output = u16x16; #[inline(always)] fn mul(self, rhs: u16x16) -> Self::Output { rhs.simd.mul_u16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u16x16 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u16x16(self, rhs) } } impl core::ops::BitAndAssign for u16x16 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u16x16(*self, rhs); } } impl core::ops::BitAnd for u16x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u16) -> Self::Output { self.simd.and_u16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u16x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: u16) { *self = self.simd.and_u16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u16 { type Output = u16x16; #[inline(always)] fn bitand(self, rhs: u16x16) -> Self::Output { rhs.simd.and_u16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u16x16 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u16x16(self, rhs) } } impl core::ops::BitOrAssign for u16x16 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u16x16(*self, rhs); } } impl core::ops::BitOr for u16x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u16) -> Self::Output { self.simd.or_u16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u16x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: u16) { *self = self.simd.or_u16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u16 { type Output = u16x16; #[inline(always)] fn bitor(self, rhs: u16x16) -> Self::Output { rhs.simd.or_u16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u16x16 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u16x16(self, rhs) } } impl core::ops::BitXorAssign for u16x16 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u16x16(*self, rhs); } } impl core::ops::BitXor for u16x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u16) -> Self::Output { self.simd.xor_u16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u16x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u16) { *self = self.simd.xor_u16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u16 { type Output = u16x16; #[inline(always)] fn bitxor(self, rhs: u16x16) -> Self::Output { rhs.simd.xor_u16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u16x16 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u16x16(self) } } impl core::ops::Shl for u16x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u16x16(self, rhs) } } impl core::ops::ShlAssign for u16x16 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u16x16(*self, rhs); } } impl core::ops::Shl for u16x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u16x16(self, rhs) } } impl core::ops::ShlAssign for u16x16 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u16x16(*self, rhs); } } impl core::ops::Shr for u16x16 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u16x16(self, rhs) } } impl core::ops::ShrAssign for u16x16 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u16x16(*self, rhs); } } impl core::ops::Shr for u16x16 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u16x16(self, rhs) } } impl core::ops::ShrAssign for u16x16 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u16x16(*self, rhs); } } impl core::ops::BitAnd for mask16x16 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask16x16(self, rhs) } } impl core::ops::BitAndAssign for mask16x16 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask16x16(*self, rhs); } } impl core::ops::BitAnd for mask16x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i16) -> Self::Output { self.simd.and_mask16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask16x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: i16) { *self = self.simd.and_mask16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i16 { type Output = mask16x16; #[inline(always)] fn bitand(self, rhs: mask16x16) -> Self::Output { rhs.simd.and_mask16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask16x16 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask16x16(self, rhs) } } impl core::ops::BitOrAssign for mask16x16 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask16x16(*self, rhs); } } impl core::ops::BitOr for mask16x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i16) -> Self::Output { self.simd.or_mask16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask16x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: i16) { *self = self.simd.or_mask16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i16 { type Output = mask16x16; #[inline(always)] fn bitor(self, rhs: mask16x16) -> Self::Output { rhs.simd.or_mask16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask16x16 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask16x16(self, rhs) } } impl core::ops::BitXorAssign for mask16x16 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask16x16(*self, rhs); } } impl core::ops::BitXor for mask16x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i16) -> Self::Output { self.simd.xor_mask16x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask16x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i16) { *self = self.simd.xor_mask16x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i16 { type Output = mask16x16; #[inline(always)] fn bitxor(self, rhs: mask16x16) -> Self::Output { rhs.simd.xor_mask16x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask16x16 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask16x16(self) } } impl core::ops::Neg for i32x8 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i32x8(self) } } impl core::ops::Add for i32x8 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i32x8(self, rhs) } } impl core::ops::AddAssign for i32x8 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i32x8(*self, rhs); } } impl core::ops::Add for i32x8 { type Output = Self; #[inline(always)] fn add(self, rhs: i32) -> Self::Output { self.simd.add_i32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i32x8 { #[inline(always)] fn add_assign(&mut self, rhs: i32) { *self = self.simd.add_i32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i32 { type Output = i32x8; #[inline(always)] fn add(self, rhs: i32x8) -> Self::Output { rhs.simd.add_i32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i32x8 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i32x8(self, rhs) } } impl core::ops::SubAssign for i32x8 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i32x8(*self, rhs); } } impl core::ops::Sub for i32x8 { type Output = Self; #[inline(always)] fn sub(self, rhs: i32) -> Self::Output { self.simd.sub_i32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i32x8 { #[inline(always)] fn sub_assign(&mut self, rhs: i32) { *self = self.simd.sub_i32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i32 { type Output = i32x8; #[inline(always)] fn sub(self, rhs: i32x8) -> Self::Output { rhs.simd.sub_i32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i32x8 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i32x8(self, rhs) } } impl core::ops::MulAssign for i32x8 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i32x8(*self, rhs); } } impl core::ops::Mul for i32x8 { type Output = Self; #[inline(always)] fn mul(self, rhs: i32) -> Self::Output { self.simd.mul_i32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i32x8 { #[inline(always)] fn mul_assign(&mut self, rhs: i32) { *self = self.simd.mul_i32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i32 { type Output = i32x8; #[inline(always)] fn mul(self, rhs: i32x8) -> Self::Output { rhs.simd.mul_i32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i32x8 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i32x8(self, rhs) } } impl core::ops::BitAndAssign for i32x8 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i32x8(*self, rhs); } } impl core::ops::BitAnd for i32x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i32) -> Self::Output { self.simd.and_i32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i32x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: i32) { *self = self.simd.and_i32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i32 { type Output = i32x8; #[inline(always)] fn bitand(self, rhs: i32x8) -> Self::Output { rhs.simd.and_i32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i32x8 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i32x8(self, rhs) } } impl core::ops::BitOrAssign for i32x8 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i32x8(*self, rhs); } } impl core::ops::BitOr for i32x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i32) -> Self::Output { self.simd.or_i32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i32x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: i32) { *self = self.simd.or_i32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i32 { type Output = i32x8; #[inline(always)] fn bitor(self, rhs: i32x8) -> Self::Output { rhs.simd.or_i32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i32x8 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i32x8(self, rhs) } } impl core::ops::BitXorAssign for i32x8 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i32x8(*self, rhs); } } impl core::ops::BitXor for i32x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i32) -> Self::Output { self.simd.xor_i32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i32x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i32) { *self = self.simd.xor_i32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i32 { type Output = i32x8; #[inline(always)] fn bitxor(self, rhs: i32x8) -> Self::Output { rhs.simd.xor_i32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i32x8 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i32x8(self) } } impl core::ops::Shl for i32x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i32x8(self, rhs) } } impl core::ops::ShlAssign for i32x8 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i32x8(*self, rhs); } } impl core::ops::Shl for i32x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i32x8(self, rhs) } } impl core::ops::ShlAssign for i32x8 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i32x8(*self, rhs); } } impl core::ops::Shr for i32x8 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i32x8(self, rhs) } } impl core::ops::ShrAssign for i32x8 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i32x8(*self, rhs); } } impl core::ops::Shr for i32x8 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i32x8(self, rhs) } } impl core::ops::ShrAssign for i32x8 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i32x8(*self, rhs); } } impl core::ops::Add for u32x8 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u32x8(self, rhs) } } impl core::ops::AddAssign for u32x8 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u32x8(*self, rhs); } } impl core::ops::Add for u32x8 { type Output = Self; #[inline(always)] fn add(self, rhs: u32) -> Self::Output { self.simd.add_u32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u32x8 { #[inline(always)] fn add_assign(&mut self, rhs: u32) { *self = self.simd.add_u32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u32 { type Output = u32x8; #[inline(always)] fn add(self, rhs: u32x8) -> Self::Output { rhs.simd.add_u32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u32x8 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u32x8(self, rhs) } } impl core::ops::SubAssign for u32x8 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u32x8(*self, rhs); } } impl core::ops::Sub for u32x8 { type Output = Self; #[inline(always)] fn sub(self, rhs: u32) -> Self::Output { self.simd.sub_u32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u32x8 { #[inline(always)] fn sub_assign(&mut self, rhs: u32) { *self = self.simd.sub_u32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u32 { type Output = u32x8; #[inline(always)] fn sub(self, rhs: u32x8) -> Self::Output { rhs.simd.sub_u32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u32x8 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u32x8(self, rhs) } } impl core::ops::MulAssign for u32x8 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u32x8(*self, rhs); } } impl core::ops::Mul for u32x8 { type Output = Self; #[inline(always)] fn mul(self, rhs: u32) -> Self::Output { self.simd.mul_u32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u32x8 { #[inline(always)] fn mul_assign(&mut self, rhs: u32) { *self = self.simd.mul_u32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u32 { type Output = u32x8; #[inline(always)] fn mul(self, rhs: u32x8) -> Self::Output { rhs.simd.mul_u32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u32x8 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u32x8(self, rhs) } } impl core::ops::BitAndAssign for u32x8 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u32x8(*self, rhs); } } impl core::ops::BitAnd for u32x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u32) -> Self::Output { self.simd.and_u32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u32x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: u32) { *self = self.simd.and_u32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u32 { type Output = u32x8; #[inline(always)] fn bitand(self, rhs: u32x8) -> Self::Output { rhs.simd.and_u32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u32x8 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u32x8(self, rhs) } } impl core::ops::BitOrAssign for u32x8 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u32x8(*self, rhs); } } impl core::ops::BitOr for u32x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u32) -> Self::Output { self.simd.or_u32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u32x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: u32) { *self = self.simd.or_u32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u32 { type Output = u32x8; #[inline(always)] fn bitor(self, rhs: u32x8) -> Self::Output { rhs.simd.or_u32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u32x8 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u32x8(self, rhs) } } impl core::ops::BitXorAssign for u32x8 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u32x8(*self, rhs); } } impl core::ops::BitXor for u32x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u32) -> Self::Output { self.simd.xor_u32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u32x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u32) { *self = self.simd.xor_u32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u32 { type Output = u32x8; #[inline(always)] fn bitxor(self, rhs: u32x8) -> Self::Output { rhs.simd.xor_u32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u32x8 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u32x8(self) } } impl core::ops::Shl for u32x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u32x8(self, rhs) } } impl core::ops::ShlAssign for u32x8 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u32x8(*self, rhs); } } impl core::ops::Shl for u32x8 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u32x8(self, rhs) } } impl core::ops::ShlAssign for u32x8 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u32x8(*self, rhs); } } impl core::ops::Shr for u32x8 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u32x8(self, rhs) } } impl core::ops::ShrAssign for u32x8 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u32x8(*self, rhs); } } impl core::ops::Shr for u32x8 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u32x8(self, rhs) } } impl core::ops::ShrAssign for u32x8 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u32x8(*self, rhs); } } impl core::ops::BitAnd for mask32x8 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask32x8(self, rhs) } } impl core::ops::BitAndAssign for mask32x8 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask32x8(*self, rhs); } } impl core::ops::BitAnd for mask32x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i32) -> Self::Output { self.simd.and_mask32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask32x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: i32) { *self = self.simd.and_mask32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i32 { type Output = mask32x8; #[inline(always)] fn bitand(self, rhs: mask32x8) -> Self::Output { rhs.simd.and_mask32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask32x8 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask32x8(self, rhs) } } impl core::ops::BitOrAssign for mask32x8 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask32x8(*self, rhs); } } impl core::ops::BitOr for mask32x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i32) -> Self::Output { self.simd.or_mask32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask32x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: i32) { *self = self.simd.or_mask32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i32 { type Output = mask32x8; #[inline(always)] fn bitor(self, rhs: mask32x8) -> Self::Output { rhs.simd.or_mask32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask32x8 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask32x8(self, rhs) } } impl core::ops::BitXorAssign for mask32x8 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask32x8(*self, rhs); } } impl core::ops::BitXor for mask32x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i32) -> Self::Output { self.simd.xor_mask32x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask32x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i32) { *self = self.simd.xor_mask32x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i32 { type Output = mask32x8; #[inline(always)] fn bitxor(self, rhs: mask32x8) -> Self::Output { rhs.simd.xor_mask32x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask32x8 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask32x8(self) } } impl core::ops::Neg for f64x4 { type Output = Self; #[doc = "Negate each element of the vector."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_f64x4(self) } } impl core::ops::Add for f64x4 { type Output = Self; #[doc = "Add two vectors element-wise."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_f64x4(self, rhs) } } impl core::ops::AddAssign for f64x4 { #[doc = "Add two vectors element-wise."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_f64x4(*self, rhs); } } impl core::ops::Add for f64x4 { type Output = Self; #[inline(always)] fn add(self, rhs: f64) -> Self::Output { self.simd.add_f64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for f64x4 { #[inline(always)] fn add_assign(&mut self, rhs: f64) { *self = self.simd.add_f64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for f64 { type Output = f64x4; #[inline(always)] fn add(self, rhs: f64x4) -> Self::Output { rhs.simd.add_f64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for f64x4 { type Output = Self; #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_f64x4(self, rhs) } } impl core::ops::SubAssign for f64x4 { #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_f64x4(*self, rhs); } } impl core::ops::Sub for f64x4 { type Output = Self; #[inline(always)] fn sub(self, rhs: f64) -> Self::Output { self.simd.sub_f64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for f64x4 { #[inline(always)] fn sub_assign(&mut self, rhs: f64) { *self = self.simd.sub_f64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for f64 { type Output = f64x4; #[inline(always)] fn sub(self, rhs: f64x4) -> Self::Output { rhs.simd.sub_f64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for f64x4 { type Output = Self; #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_f64x4(self, rhs) } } impl core::ops::MulAssign for f64x4 { #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_f64x4(*self, rhs); } } impl core::ops::Mul for f64x4 { type Output = Self; #[inline(always)] fn mul(self, rhs: f64) -> Self::Output { self.simd.mul_f64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for f64x4 { #[inline(always)] fn mul_assign(&mut self, rhs: f64) { *self = self.simd.mul_f64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for f64 { type Output = f64x4; #[inline(always)] fn mul(self, rhs: f64x4) -> Self::Output { rhs.simd.mul_f64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Div for f64x4 { type Output = Self; #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div(self, rhs: Self) -> Self::Output { self.simd.div_f64x4(self, rhs) } } impl core::ops::DivAssign for f64x4 { #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div_assign(&mut self, rhs: Self) { *self = self.simd.div_f64x4(*self, rhs); } } impl core::ops::Div for f64x4 { type Output = Self; #[inline(always)] fn div(self, rhs: f64) -> Self::Output { self.simd.div_f64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::DivAssign for f64x4 { #[inline(always)] fn div_assign(&mut self, rhs: f64) { *self = self.simd.div_f64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::Div> for f64 { type Output = f64x4; #[inline(always)] fn div(self, rhs: f64x4) -> Self::Output { rhs.simd.div_f64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for mask64x4 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask64x4(self, rhs) } } impl core::ops::BitAndAssign for mask64x4 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask64x4(*self, rhs); } } impl core::ops::BitAnd for mask64x4 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i64) -> Self::Output { self.simd.and_mask64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask64x4 { #[inline(always)] fn bitand_assign(&mut self, rhs: i64) { *self = self.simd.and_mask64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i64 { type Output = mask64x4; #[inline(always)] fn bitand(self, rhs: mask64x4) -> Self::Output { rhs.simd.and_mask64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask64x4 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask64x4(self, rhs) } } impl core::ops::BitOrAssign for mask64x4 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask64x4(*self, rhs); } } impl core::ops::BitOr for mask64x4 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i64) -> Self::Output { self.simd.or_mask64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask64x4 { #[inline(always)] fn bitor_assign(&mut self, rhs: i64) { *self = self.simd.or_mask64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i64 { type Output = mask64x4; #[inline(always)] fn bitor(self, rhs: mask64x4) -> Self::Output { rhs.simd.or_mask64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask64x4 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask64x4(self, rhs) } } impl core::ops::BitXorAssign for mask64x4 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask64x4(*self, rhs); } } impl core::ops::BitXor for mask64x4 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i64) -> Self::Output { self.simd.xor_mask64x4(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask64x4 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i64) { *self = self.simd.xor_mask64x4(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i64 { type Output = mask64x4; #[inline(always)] fn bitxor(self, rhs: mask64x4) -> Self::Output { rhs.simd.xor_mask64x4(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask64x4 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask64x4(self) } } impl core::ops::Neg for f32x16 { type Output = Self; #[doc = "Negate each element of the vector."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_f32x16(self) } } impl core::ops::Add for f32x16 { type Output = Self; #[doc = "Add two vectors element-wise."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_f32x16(self, rhs) } } impl core::ops::AddAssign for f32x16 { #[doc = "Add two vectors element-wise."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_f32x16(*self, rhs); } } impl core::ops::Add for f32x16 { type Output = Self; #[inline(always)] fn add(self, rhs: f32) -> Self::Output { self.simd.add_f32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for f32x16 { #[inline(always)] fn add_assign(&mut self, rhs: f32) { *self = self.simd.add_f32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for f32 { type Output = f32x16; #[inline(always)] fn add(self, rhs: f32x16) -> Self::Output { rhs.simd.add_f32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for f32x16 { type Output = Self; #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_f32x16(self, rhs) } } impl core::ops::SubAssign for f32x16 { #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_f32x16(*self, rhs); } } impl core::ops::Sub for f32x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: f32) -> Self::Output { self.simd.sub_f32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for f32x16 { #[inline(always)] fn sub_assign(&mut self, rhs: f32) { *self = self.simd.sub_f32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for f32 { type Output = f32x16; #[inline(always)] fn sub(self, rhs: f32x16) -> Self::Output { rhs.simd.sub_f32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for f32x16 { type Output = Self; #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_f32x16(self, rhs) } } impl core::ops::MulAssign for f32x16 { #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_f32x16(*self, rhs); } } impl core::ops::Mul for f32x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: f32) -> Self::Output { self.simd.mul_f32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for f32x16 { #[inline(always)] fn mul_assign(&mut self, rhs: f32) { *self = self.simd.mul_f32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for f32 { type Output = f32x16; #[inline(always)] fn mul(self, rhs: f32x16) -> Self::Output { rhs.simd.mul_f32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Div for f32x16 { type Output = Self; #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div(self, rhs: Self) -> Self::Output { self.simd.div_f32x16(self, rhs) } } impl core::ops::DivAssign for f32x16 { #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div_assign(&mut self, rhs: Self) { *self = self.simd.div_f32x16(*self, rhs); } } impl core::ops::Div for f32x16 { type Output = Self; #[inline(always)] fn div(self, rhs: f32) -> Self::Output { self.simd.div_f32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::DivAssign for f32x16 { #[inline(always)] fn div_assign(&mut self, rhs: f32) { *self = self.simd.div_f32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Div> for f32 { type Output = f32x16; #[inline(always)] fn div(self, rhs: f32x16) -> Self::Output { rhs.simd.div_f32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Neg for i8x64 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i8x64(self) } } impl core::ops::Add for i8x64 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i8x64(self, rhs) } } impl core::ops::AddAssign for i8x64 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i8x64(*self, rhs); } } impl core::ops::Add for i8x64 { type Output = Self; #[inline(always)] fn add(self, rhs: i8) -> Self::Output { self.simd.add_i8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i8x64 { #[inline(always)] fn add_assign(&mut self, rhs: i8) { *self = self.simd.add_i8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i8 { type Output = i8x64; #[inline(always)] fn add(self, rhs: i8x64) -> Self::Output { rhs.simd.add_i8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i8x64 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i8x64(self, rhs) } } impl core::ops::SubAssign for i8x64 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i8x64(*self, rhs); } } impl core::ops::Sub for i8x64 { type Output = Self; #[inline(always)] fn sub(self, rhs: i8) -> Self::Output { self.simd.sub_i8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i8x64 { #[inline(always)] fn sub_assign(&mut self, rhs: i8) { *self = self.simd.sub_i8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i8 { type Output = i8x64; #[inline(always)] fn sub(self, rhs: i8x64) -> Self::Output { rhs.simd.sub_i8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i8x64 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i8x64(self, rhs) } } impl core::ops::MulAssign for i8x64 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i8x64(*self, rhs); } } impl core::ops::Mul for i8x64 { type Output = Self; #[inline(always)] fn mul(self, rhs: i8) -> Self::Output { self.simd.mul_i8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i8x64 { #[inline(always)] fn mul_assign(&mut self, rhs: i8) { *self = self.simd.mul_i8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i8 { type Output = i8x64; #[inline(always)] fn mul(self, rhs: i8x64) -> Self::Output { rhs.simd.mul_i8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i8x64 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i8x64(self, rhs) } } impl core::ops::BitAndAssign for i8x64 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i8x64(*self, rhs); } } impl core::ops::BitAnd for i8x64 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i8) -> Self::Output { self.simd.and_i8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i8x64 { #[inline(always)] fn bitand_assign(&mut self, rhs: i8) { *self = self.simd.and_i8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i8 { type Output = i8x64; #[inline(always)] fn bitand(self, rhs: i8x64) -> Self::Output { rhs.simd.and_i8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i8x64 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i8x64(self, rhs) } } impl core::ops::BitOrAssign for i8x64 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i8x64(*self, rhs); } } impl core::ops::BitOr for i8x64 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i8) -> Self::Output { self.simd.or_i8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i8x64 { #[inline(always)] fn bitor_assign(&mut self, rhs: i8) { *self = self.simd.or_i8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i8 { type Output = i8x64; #[inline(always)] fn bitor(self, rhs: i8x64) -> Self::Output { rhs.simd.or_i8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i8x64 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i8x64(self, rhs) } } impl core::ops::BitXorAssign for i8x64 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i8x64(*self, rhs); } } impl core::ops::BitXor for i8x64 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i8) -> Self::Output { self.simd.xor_i8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i8x64 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i8) { *self = self.simd.xor_i8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i8 { type Output = i8x64; #[inline(always)] fn bitxor(self, rhs: i8x64) -> Self::Output { rhs.simd.xor_i8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i8x64 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i8x64(self) } } impl core::ops::Shl for i8x64 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i8x64(self, rhs) } } impl core::ops::ShlAssign for i8x64 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i8x64(*self, rhs); } } impl core::ops::Shl for i8x64 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i8x64(self, rhs) } } impl core::ops::ShlAssign for i8x64 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i8x64(*self, rhs); } } impl core::ops::Shr for i8x64 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i8x64(self, rhs) } } impl core::ops::ShrAssign for i8x64 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i8x64(*self, rhs); } } impl core::ops::Shr for i8x64 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i8x64(self, rhs) } } impl core::ops::ShrAssign for i8x64 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i8x64(*self, rhs); } } impl core::ops::Add for u8x64 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u8x64(self, rhs) } } impl core::ops::AddAssign for u8x64 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u8x64(*self, rhs); } } impl core::ops::Add for u8x64 { type Output = Self; #[inline(always)] fn add(self, rhs: u8) -> Self::Output { self.simd.add_u8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u8x64 { #[inline(always)] fn add_assign(&mut self, rhs: u8) { *self = self.simd.add_u8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u8 { type Output = u8x64; #[inline(always)] fn add(self, rhs: u8x64) -> Self::Output { rhs.simd.add_u8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u8x64 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u8x64(self, rhs) } } impl core::ops::SubAssign for u8x64 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u8x64(*self, rhs); } } impl core::ops::Sub for u8x64 { type Output = Self; #[inline(always)] fn sub(self, rhs: u8) -> Self::Output { self.simd.sub_u8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u8x64 { #[inline(always)] fn sub_assign(&mut self, rhs: u8) { *self = self.simd.sub_u8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u8 { type Output = u8x64; #[inline(always)] fn sub(self, rhs: u8x64) -> Self::Output { rhs.simd.sub_u8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u8x64 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u8x64(self, rhs) } } impl core::ops::MulAssign for u8x64 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u8x64(*self, rhs); } } impl core::ops::Mul for u8x64 { type Output = Self; #[inline(always)] fn mul(self, rhs: u8) -> Self::Output { self.simd.mul_u8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u8x64 { #[inline(always)] fn mul_assign(&mut self, rhs: u8) { *self = self.simd.mul_u8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u8 { type Output = u8x64; #[inline(always)] fn mul(self, rhs: u8x64) -> Self::Output { rhs.simd.mul_u8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u8x64 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u8x64(self, rhs) } } impl core::ops::BitAndAssign for u8x64 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u8x64(*self, rhs); } } impl core::ops::BitAnd for u8x64 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u8) -> Self::Output { self.simd.and_u8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u8x64 { #[inline(always)] fn bitand_assign(&mut self, rhs: u8) { *self = self.simd.and_u8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u8 { type Output = u8x64; #[inline(always)] fn bitand(self, rhs: u8x64) -> Self::Output { rhs.simd.and_u8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u8x64 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u8x64(self, rhs) } } impl core::ops::BitOrAssign for u8x64 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u8x64(*self, rhs); } } impl core::ops::BitOr for u8x64 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u8) -> Self::Output { self.simd.or_u8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u8x64 { #[inline(always)] fn bitor_assign(&mut self, rhs: u8) { *self = self.simd.or_u8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u8 { type Output = u8x64; #[inline(always)] fn bitor(self, rhs: u8x64) -> Self::Output { rhs.simd.or_u8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u8x64 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u8x64(self, rhs) } } impl core::ops::BitXorAssign for u8x64 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u8x64(*self, rhs); } } impl core::ops::BitXor for u8x64 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u8) -> Self::Output { self.simd.xor_u8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u8x64 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u8) { *self = self.simd.xor_u8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u8 { type Output = u8x64; #[inline(always)] fn bitxor(self, rhs: u8x64) -> Self::Output { rhs.simd.xor_u8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u8x64 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u8x64(self) } } impl core::ops::Shl for u8x64 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u8x64(self, rhs) } } impl core::ops::ShlAssign for u8x64 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u8x64(*self, rhs); } } impl core::ops::Shl for u8x64 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u8x64(self, rhs) } } impl core::ops::ShlAssign for u8x64 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u8x64(*self, rhs); } } impl core::ops::Shr for u8x64 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u8x64(self, rhs) } } impl core::ops::ShrAssign for u8x64 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u8x64(*self, rhs); } } impl core::ops::Shr for u8x64 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u8x64(self, rhs) } } impl core::ops::ShrAssign for u8x64 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u8x64(*self, rhs); } } impl core::ops::BitAnd for mask8x64 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask8x64(self, rhs) } } impl core::ops::BitAndAssign for mask8x64 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask8x64(*self, rhs); } } impl core::ops::BitAnd for mask8x64 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i8) -> Self::Output { self.simd.and_mask8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask8x64 { #[inline(always)] fn bitand_assign(&mut self, rhs: i8) { *self = self.simd.and_mask8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i8 { type Output = mask8x64; #[inline(always)] fn bitand(self, rhs: mask8x64) -> Self::Output { rhs.simd.and_mask8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask8x64 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask8x64(self, rhs) } } impl core::ops::BitOrAssign for mask8x64 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask8x64(*self, rhs); } } impl core::ops::BitOr for mask8x64 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i8) -> Self::Output { self.simd.or_mask8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask8x64 { #[inline(always)] fn bitor_assign(&mut self, rhs: i8) { *self = self.simd.or_mask8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i8 { type Output = mask8x64; #[inline(always)] fn bitor(self, rhs: mask8x64) -> Self::Output { rhs.simd.or_mask8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask8x64 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask8x64(self, rhs) } } impl core::ops::BitXorAssign for mask8x64 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask8x64(*self, rhs); } } impl core::ops::BitXor for mask8x64 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i8) -> Self::Output { self.simd.xor_mask8x64(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask8x64 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i8) { *self = self.simd.xor_mask8x64(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i8 { type Output = mask8x64; #[inline(always)] fn bitxor(self, rhs: mask8x64) -> Self::Output { rhs.simd.xor_mask8x64(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask8x64 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask8x64(self) } } impl core::ops::Neg for i16x32 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i16x32(self) } } impl core::ops::Add for i16x32 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i16x32(self, rhs) } } impl core::ops::AddAssign for i16x32 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i16x32(*self, rhs); } } impl core::ops::Add for i16x32 { type Output = Self; #[inline(always)] fn add(self, rhs: i16) -> Self::Output { self.simd.add_i16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i16x32 { #[inline(always)] fn add_assign(&mut self, rhs: i16) { *self = self.simd.add_i16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i16 { type Output = i16x32; #[inline(always)] fn add(self, rhs: i16x32) -> Self::Output { rhs.simd.add_i16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i16x32 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i16x32(self, rhs) } } impl core::ops::SubAssign for i16x32 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i16x32(*self, rhs); } } impl core::ops::Sub for i16x32 { type Output = Self; #[inline(always)] fn sub(self, rhs: i16) -> Self::Output { self.simd.sub_i16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i16x32 { #[inline(always)] fn sub_assign(&mut self, rhs: i16) { *self = self.simd.sub_i16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i16 { type Output = i16x32; #[inline(always)] fn sub(self, rhs: i16x32) -> Self::Output { rhs.simd.sub_i16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i16x32 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i16x32(self, rhs) } } impl core::ops::MulAssign for i16x32 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i16x32(*self, rhs); } } impl core::ops::Mul for i16x32 { type Output = Self; #[inline(always)] fn mul(self, rhs: i16) -> Self::Output { self.simd.mul_i16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i16x32 { #[inline(always)] fn mul_assign(&mut self, rhs: i16) { *self = self.simd.mul_i16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i16 { type Output = i16x32; #[inline(always)] fn mul(self, rhs: i16x32) -> Self::Output { rhs.simd.mul_i16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i16x32 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i16x32(self, rhs) } } impl core::ops::BitAndAssign for i16x32 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i16x32(*self, rhs); } } impl core::ops::BitAnd for i16x32 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i16) -> Self::Output { self.simd.and_i16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i16x32 { #[inline(always)] fn bitand_assign(&mut self, rhs: i16) { *self = self.simd.and_i16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i16 { type Output = i16x32; #[inline(always)] fn bitand(self, rhs: i16x32) -> Self::Output { rhs.simd.and_i16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i16x32 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i16x32(self, rhs) } } impl core::ops::BitOrAssign for i16x32 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i16x32(*self, rhs); } } impl core::ops::BitOr for i16x32 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i16) -> Self::Output { self.simd.or_i16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i16x32 { #[inline(always)] fn bitor_assign(&mut self, rhs: i16) { *self = self.simd.or_i16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i16 { type Output = i16x32; #[inline(always)] fn bitor(self, rhs: i16x32) -> Self::Output { rhs.simd.or_i16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i16x32 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i16x32(self, rhs) } } impl core::ops::BitXorAssign for i16x32 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i16x32(*self, rhs); } } impl core::ops::BitXor for i16x32 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i16) -> Self::Output { self.simd.xor_i16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i16x32 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i16) { *self = self.simd.xor_i16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i16 { type Output = i16x32; #[inline(always)] fn bitxor(self, rhs: i16x32) -> Self::Output { rhs.simd.xor_i16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i16x32 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i16x32(self) } } impl core::ops::Shl for i16x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i16x32(self, rhs) } } impl core::ops::ShlAssign for i16x32 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i16x32(*self, rhs); } } impl core::ops::Shl for i16x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i16x32(self, rhs) } } impl core::ops::ShlAssign for i16x32 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i16x32(*self, rhs); } } impl core::ops::Shr for i16x32 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i16x32(self, rhs) } } impl core::ops::ShrAssign for i16x32 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i16x32(*self, rhs); } } impl core::ops::Shr for i16x32 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i16x32(self, rhs) } } impl core::ops::ShrAssign for i16x32 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i16x32(*self, rhs); } } impl core::ops::Add for u16x32 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u16x32(self, rhs) } } impl core::ops::AddAssign for u16x32 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u16x32(*self, rhs); } } impl core::ops::Add for u16x32 { type Output = Self; #[inline(always)] fn add(self, rhs: u16) -> Self::Output { self.simd.add_u16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u16x32 { #[inline(always)] fn add_assign(&mut self, rhs: u16) { *self = self.simd.add_u16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u16 { type Output = u16x32; #[inline(always)] fn add(self, rhs: u16x32) -> Self::Output { rhs.simd.add_u16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u16x32 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u16x32(self, rhs) } } impl core::ops::SubAssign for u16x32 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u16x32(*self, rhs); } } impl core::ops::Sub for u16x32 { type Output = Self; #[inline(always)] fn sub(self, rhs: u16) -> Self::Output { self.simd.sub_u16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u16x32 { #[inline(always)] fn sub_assign(&mut self, rhs: u16) { *self = self.simd.sub_u16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u16 { type Output = u16x32; #[inline(always)] fn sub(self, rhs: u16x32) -> Self::Output { rhs.simd.sub_u16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u16x32 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u16x32(self, rhs) } } impl core::ops::MulAssign for u16x32 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u16x32(*self, rhs); } } impl core::ops::Mul for u16x32 { type Output = Self; #[inline(always)] fn mul(self, rhs: u16) -> Self::Output { self.simd.mul_u16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u16x32 { #[inline(always)] fn mul_assign(&mut self, rhs: u16) { *self = self.simd.mul_u16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u16 { type Output = u16x32; #[inline(always)] fn mul(self, rhs: u16x32) -> Self::Output { rhs.simd.mul_u16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u16x32 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u16x32(self, rhs) } } impl core::ops::BitAndAssign for u16x32 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u16x32(*self, rhs); } } impl core::ops::BitAnd for u16x32 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u16) -> Self::Output { self.simd.and_u16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u16x32 { #[inline(always)] fn bitand_assign(&mut self, rhs: u16) { *self = self.simd.and_u16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u16 { type Output = u16x32; #[inline(always)] fn bitand(self, rhs: u16x32) -> Self::Output { rhs.simd.and_u16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u16x32 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u16x32(self, rhs) } } impl core::ops::BitOrAssign for u16x32 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u16x32(*self, rhs); } } impl core::ops::BitOr for u16x32 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u16) -> Self::Output { self.simd.or_u16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u16x32 { #[inline(always)] fn bitor_assign(&mut self, rhs: u16) { *self = self.simd.or_u16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u16 { type Output = u16x32; #[inline(always)] fn bitor(self, rhs: u16x32) -> Self::Output { rhs.simd.or_u16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u16x32 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u16x32(self, rhs) } } impl core::ops::BitXorAssign for u16x32 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u16x32(*self, rhs); } } impl core::ops::BitXor for u16x32 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u16) -> Self::Output { self.simd.xor_u16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u16x32 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u16) { *self = self.simd.xor_u16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u16 { type Output = u16x32; #[inline(always)] fn bitxor(self, rhs: u16x32) -> Self::Output { rhs.simd.xor_u16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u16x32 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u16x32(self) } } impl core::ops::Shl for u16x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u16x32(self, rhs) } } impl core::ops::ShlAssign for u16x32 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u16x32(*self, rhs); } } impl core::ops::Shl for u16x32 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u16x32(self, rhs) } } impl core::ops::ShlAssign for u16x32 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u16x32(*self, rhs); } } impl core::ops::Shr for u16x32 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u16x32(self, rhs) } } impl core::ops::ShrAssign for u16x32 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u16x32(*self, rhs); } } impl core::ops::Shr for u16x32 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u16x32(self, rhs) } } impl core::ops::ShrAssign for u16x32 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u16x32(*self, rhs); } } impl core::ops::BitAnd for mask16x32 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask16x32(self, rhs) } } impl core::ops::BitAndAssign for mask16x32 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask16x32(*self, rhs); } } impl core::ops::BitAnd for mask16x32 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i16) -> Self::Output { self.simd.and_mask16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask16x32 { #[inline(always)] fn bitand_assign(&mut self, rhs: i16) { *self = self.simd.and_mask16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i16 { type Output = mask16x32; #[inline(always)] fn bitand(self, rhs: mask16x32) -> Self::Output { rhs.simd.and_mask16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask16x32 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask16x32(self, rhs) } } impl core::ops::BitOrAssign for mask16x32 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask16x32(*self, rhs); } } impl core::ops::BitOr for mask16x32 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i16) -> Self::Output { self.simd.or_mask16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask16x32 { #[inline(always)] fn bitor_assign(&mut self, rhs: i16) { *self = self.simd.or_mask16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i16 { type Output = mask16x32; #[inline(always)] fn bitor(self, rhs: mask16x32) -> Self::Output { rhs.simd.or_mask16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask16x32 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask16x32(self, rhs) } } impl core::ops::BitXorAssign for mask16x32 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask16x32(*self, rhs); } } impl core::ops::BitXor for mask16x32 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i16) -> Self::Output { self.simd.xor_mask16x32(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask16x32 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i16) { *self = self.simd.xor_mask16x32(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i16 { type Output = mask16x32; #[inline(always)] fn bitxor(self, rhs: mask16x32) -> Self::Output { rhs.simd.xor_mask16x32(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask16x32 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask16x32(self) } } impl core::ops::Neg for i32x16 { type Output = Self; #[doc = "Negate each element of the vector, wrapping on overflow."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_i32x16(self) } } impl core::ops::Add for i32x16 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_i32x16(self, rhs) } } impl core::ops::AddAssign for i32x16 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_i32x16(*self, rhs); } } impl core::ops::Add for i32x16 { type Output = Self; #[inline(always)] fn add(self, rhs: i32) -> Self::Output { self.simd.add_i32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for i32x16 { #[inline(always)] fn add_assign(&mut self, rhs: i32) { *self = self.simd.add_i32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for i32 { type Output = i32x16; #[inline(always)] fn add(self, rhs: i32x16) -> Self::Output { rhs.simd.add_i32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for i32x16 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_i32x16(self, rhs) } } impl core::ops::SubAssign for i32x16 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_i32x16(*self, rhs); } } impl core::ops::Sub for i32x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: i32) -> Self::Output { self.simd.sub_i32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for i32x16 { #[inline(always)] fn sub_assign(&mut self, rhs: i32) { *self = self.simd.sub_i32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for i32 { type Output = i32x16; #[inline(always)] fn sub(self, rhs: i32x16) -> Self::Output { rhs.simd.sub_i32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for i32x16 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_i32x16(self, rhs) } } impl core::ops::MulAssign for i32x16 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_i32x16(*self, rhs); } } impl core::ops::Mul for i32x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: i32) -> Self::Output { self.simd.mul_i32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for i32x16 { #[inline(always)] fn mul_assign(&mut self, rhs: i32) { *self = self.simd.mul_i32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for i32 { type Output = i32x16; #[inline(always)] fn mul(self, rhs: i32x16) -> Self::Output { rhs.simd.mul_i32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for i32x16 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_i32x16(self, rhs) } } impl core::ops::BitAndAssign for i32x16 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_i32x16(*self, rhs); } } impl core::ops::BitAnd for i32x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i32) -> Self::Output { self.simd.and_i32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for i32x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: i32) { *self = self.simd.and_i32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i32 { type Output = i32x16; #[inline(always)] fn bitand(self, rhs: i32x16) -> Self::Output { rhs.simd.and_i32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for i32x16 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_i32x16(self, rhs) } } impl core::ops::BitOrAssign for i32x16 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_i32x16(*self, rhs); } } impl core::ops::BitOr for i32x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i32) -> Self::Output { self.simd.or_i32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for i32x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: i32) { *self = self.simd.or_i32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i32 { type Output = i32x16; #[inline(always)] fn bitor(self, rhs: i32x16) -> Self::Output { rhs.simd.or_i32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for i32x16 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_i32x16(self, rhs) } } impl core::ops::BitXorAssign for i32x16 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_i32x16(*self, rhs); } } impl core::ops::BitXor for i32x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i32) -> Self::Output { self.simd.xor_i32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for i32x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i32) { *self = self.simd.xor_i32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i32 { type Output = i32x16; #[inline(always)] fn bitxor(self, rhs: i32x16) -> Self::Output { rhs.simd.xor_i32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for i32x16 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_i32x16(self) } } impl core::ops::Shl for i32x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_i32x16(self, rhs) } } impl core::ops::ShlAssign for i32x16 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_i32x16(*self, rhs); } } impl core::ops::Shl for i32x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_i32x16(self, rhs) } } impl core::ops::ShlAssign for i32x16 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_i32x16(*self, rhs); } } impl core::ops::Shr for i32x16 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_i32x16(self, rhs) } } impl core::ops::ShrAssign for i32x16 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_i32x16(*self, rhs); } } impl core::ops::Shr for i32x16 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_i32x16(self, rhs) } } impl core::ops::ShrAssign for i32x16 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_i32x16(*self, rhs); } } impl core::ops::Add for u32x16 { type Output = Self; #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_u32x16(self, rhs) } } impl core::ops::AddAssign for u32x16 { #[doc = "Add two vectors element-wise, wrapping on overflow."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_u32x16(*self, rhs); } } impl core::ops::Add for u32x16 { type Output = Self; #[inline(always)] fn add(self, rhs: u32) -> Self::Output { self.simd.add_u32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for u32x16 { #[inline(always)] fn add_assign(&mut self, rhs: u32) { *self = self.simd.add_u32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for u32 { type Output = u32x16; #[inline(always)] fn add(self, rhs: u32x16) -> Self::Output { rhs.simd.add_u32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for u32x16 { type Output = Self; #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_u32x16(self, rhs) } } impl core::ops::SubAssign for u32x16 { #[doc = "Subtract two vectors element-wise, wrapping on overflow."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_u32x16(*self, rhs); } } impl core::ops::Sub for u32x16 { type Output = Self; #[inline(always)] fn sub(self, rhs: u32) -> Self::Output { self.simd.sub_u32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for u32x16 { #[inline(always)] fn sub_assign(&mut self, rhs: u32) { *self = self.simd.sub_u32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for u32 { type Output = u32x16; #[inline(always)] fn sub(self, rhs: u32x16) -> Self::Output { rhs.simd.sub_u32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for u32x16 { type Output = Self; #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_u32x16(self, rhs) } } impl core::ops::MulAssign for u32x16 { #[doc = "Multiply two vectors element-wise, wrapping on overflow."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_u32x16(*self, rhs); } } impl core::ops::Mul for u32x16 { type Output = Self; #[inline(always)] fn mul(self, rhs: u32) -> Self::Output { self.simd.mul_u32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for u32x16 { #[inline(always)] fn mul_assign(&mut self, rhs: u32) { *self = self.simd.mul_u32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for u32 { type Output = u32x16; #[inline(always)] fn mul(self, rhs: u32x16) -> Self::Output { rhs.simd.mul_u32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for u32x16 { type Output = Self; #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_u32x16(self, rhs) } } impl core::ops::BitAndAssign for u32x16 { #[doc = "Compute the bitwise AND of two vectors."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_u32x16(*self, rhs); } } impl core::ops::BitAnd for u32x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: u32) -> Self::Output { self.simd.and_u32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for u32x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: u32) { *self = self.simd.and_u32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for u32 { type Output = u32x16; #[inline(always)] fn bitand(self, rhs: u32x16) -> Self::Output { rhs.simd.and_u32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for u32x16 { type Output = Self; #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_u32x16(self, rhs) } } impl core::ops::BitOrAssign for u32x16 { #[doc = "Compute the bitwise OR of two vectors."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_u32x16(*self, rhs); } } impl core::ops::BitOr for u32x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: u32) -> Self::Output { self.simd.or_u32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for u32x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: u32) { *self = self.simd.or_u32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for u32 { type Output = u32x16; #[inline(always)] fn bitor(self, rhs: u32x16) -> Self::Output { rhs.simd.or_u32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for u32x16 { type Output = Self; #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_u32x16(self, rhs) } } impl core::ops::BitXorAssign for u32x16 { #[doc = "Compute the bitwise XOR of two vectors."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_u32x16(*self, rhs); } } impl core::ops::BitXor for u32x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: u32) -> Self::Output { self.simd.xor_u32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for u32x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: u32) { *self = self.simd.xor_u32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for u32 { type Output = u32x16; #[inline(always)] fn bitxor(self, rhs: u32x16) -> Self::Output { rhs.simd.xor_u32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for u32x16 { type Output = Self; #[doc = "Compute the bitwise NOT of the vector."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_u32x16(self) } } impl core::ops::Shl for u32x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right."] #[inline(always)] fn shl(self, rhs: u32) -> Self::Output { self.simd.shl_u32x16(self, rhs) } } impl core::ops::ShlAssign for u32x16 { #[inline(always)] fn shl_assign(&mut self, rhs: u32) { *self = self.simd.shl_u32x16(*self, rhs); } } impl core::ops::Shl for u32x16 { type Output = Self; #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl(self, rhs: Self) -> Self::Output { self.simd.shlv_u32x16(self, rhs) } } impl core::ops::ShlAssign for u32x16 { #[doc = "Shift each element left by the given number of bits.\n\nBits shifted out of the left side are discarded, and zeros are shifted in on the right.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shl_assign(&mut self, rhs: Self) { *self = self.simd.shlv_u32x16(*self, rhs); } } impl core::ops::Shr for u32x16 { type Output = Self; #[doc = "Shift each element right by the given number of bits.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated."] #[inline(always)] fn shr(self, rhs: u32) -> Self::Output { self.simd.shr_u32x16(self, rhs) } } impl core::ops::ShrAssign for u32x16 { #[inline(always)] fn shr_assign(&mut self, rhs: u32) { *self = self.simd.shr_u32x16(*self, rhs); } } impl core::ops::Shr for u32x16 { type Output = Self; #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr(self, rhs: Self) -> Self::Output { self.simd.shrv_u32x16(self, rhs) } } impl core::ops::ShrAssign for u32x16 { #[doc = "Shift each element right by the corresponding element in another vector.\n\nFor unsigned integers, zeros are shifted in on the left. For signed integers, the sign bit is replicated.\n\nThis operation is not implemented in hardware on all platforms. On WebAssembly, and on x86 platforms without AVX2, this will use a fallback scalar implementation."] #[inline(always)] fn shr_assign(&mut self, rhs: Self) { *self = self.simd.shrv_u32x16(*self, rhs); } } impl core::ops::BitAnd for mask32x16 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask32x16(self, rhs) } } impl core::ops::BitAndAssign for mask32x16 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask32x16(*self, rhs); } } impl core::ops::BitAnd for mask32x16 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i32) -> Self::Output { self.simd.and_mask32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask32x16 { #[inline(always)] fn bitand_assign(&mut self, rhs: i32) { *self = self.simd.and_mask32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i32 { type Output = mask32x16; #[inline(always)] fn bitand(self, rhs: mask32x16) -> Self::Output { rhs.simd.and_mask32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask32x16 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask32x16(self, rhs) } } impl core::ops::BitOrAssign for mask32x16 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask32x16(*self, rhs); } } impl core::ops::BitOr for mask32x16 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i32) -> Self::Output { self.simd.or_mask32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask32x16 { #[inline(always)] fn bitor_assign(&mut self, rhs: i32) { *self = self.simd.or_mask32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i32 { type Output = mask32x16; #[inline(always)] fn bitor(self, rhs: mask32x16) -> Self::Output { rhs.simd.or_mask32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask32x16 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask32x16(self, rhs) } } impl core::ops::BitXorAssign for mask32x16 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask32x16(*self, rhs); } } impl core::ops::BitXor for mask32x16 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i32) -> Self::Output { self.simd.xor_mask32x16(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask32x16 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i32) { *self = self.simd.xor_mask32x16(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i32 { type Output = mask32x16; #[inline(always)] fn bitxor(self, rhs: mask32x16) -> Self::Output { rhs.simd.xor_mask32x16(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask32x16 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask32x16(self) } } impl core::ops::Neg for f64x8 { type Output = Self; #[doc = "Negate each element of the vector."] #[inline(always)] fn neg(self) -> Self::Output { self.simd.neg_f64x8(self) } } impl core::ops::Add for f64x8 { type Output = Self; #[doc = "Add two vectors element-wise."] #[inline(always)] fn add(self, rhs: Self) -> Self::Output { self.simd.add_f64x8(self, rhs) } } impl core::ops::AddAssign for f64x8 { #[doc = "Add two vectors element-wise."] #[inline(always)] fn add_assign(&mut self, rhs: Self) { *self = self.simd.add_f64x8(*self, rhs); } } impl core::ops::Add for f64x8 { type Output = Self; #[inline(always)] fn add(self, rhs: f64) -> Self::Output { self.simd.add_f64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::AddAssign for f64x8 { #[inline(always)] fn add_assign(&mut self, rhs: f64) { *self = self.simd.add_f64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Add> for f64 { type Output = f64x8; #[inline(always)] fn add(self, rhs: f64x8) -> Self::Output { rhs.simd.add_f64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Sub for f64x8 { type Output = Self; #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub(self, rhs: Self) -> Self::Output { self.simd.sub_f64x8(self, rhs) } } impl core::ops::SubAssign for f64x8 { #[doc = "Subtract two vectors element-wise."] #[inline(always)] fn sub_assign(&mut self, rhs: Self) { *self = self.simd.sub_f64x8(*self, rhs); } } impl core::ops::Sub for f64x8 { type Output = Self; #[inline(always)] fn sub(self, rhs: f64) -> Self::Output { self.simd.sub_f64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::SubAssign for f64x8 { #[inline(always)] fn sub_assign(&mut self, rhs: f64) { *self = self.simd.sub_f64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Sub> for f64 { type Output = f64x8; #[inline(always)] fn sub(self, rhs: f64x8) -> Self::Output { rhs.simd.sub_f64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Mul for f64x8 { type Output = Self; #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul(self, rhs: Self) -> Self::Output { self.simd.mul_f64x8(self, rhs) } } impl core::ops::MulAssign for f64x8 { #[doc = "Multiply two vectors element-wise."] #[inline(always)] fn mul_assign(&mut self, rhs: Self) { *self = self.simd.mul_f64x8(*self, rhs); } } impl core::ops::Mul for f64x8 { type Output = Self; #[inline(always)] fn mul(self, rhs: f64) -> Self::Output { self.simd.mul_f64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::MulAssign for f64x8 { #[inline(always)] fn mul_assign(&mut self, rhs: f64) { *self = self.simd.mul_f64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Mul> for f64 { type Output = f64x8; #[inline(always)] fn mul(self, rhs: f64x8) -> Self::Output { rhs.simd.mul_f64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Div for f64x8 { type Output = Self; #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div(self, rhs: Self) -> Self::Output { self.simd.div_f64x8(self, rhs) } } impl core::ops::DivAssign for f64x8 { #[doc = "Divide two vectors element-wise."] #[inline(always)] fn div_assign(&mut self, rhs: Self) { *self = self.simd.div_f64x8(*self, rhs); } } impl core::ops::Div for f64x8 { type Output = Self; #[inline(always)] fn div(self, rhs: f64) -> Self::Output { self.simd.div_f64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::DivAssign for f64x8 { #[inline(always)] fn div_assign(&mut self, rhs: f64) { *self = self.simd.div_f64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::Div> for f64 { type Output = f64x8; #[inline(always)] fn div(self, rhs: f64x8) -> Self::Output { rhs.simd.div_f64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitAnd for mask64x8 { type Output = Self; #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand(self, rhs: Self) -> Self::Output { self.simd.and_mask64x8(self, rhs) } } impl core::ops::BitAndAssign for mask64x8 { #[doc = "Compute the logical AND of two masks."] #[inline(always)] fn bitand_assign(&mut self, rhs: Self) { *self = self.simd.and_mask64x8(*self, rhs); } } impl core::ops::BitAnd for mask64x8 { type Output = Self; #[inline(always)] fn bitand(self, rhs: i64) -> Self::Output { self.simd.and_mask64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitAndAssign for mask64x8 { #[inline(always)] fn bitand_assign(&mut self, rhs: i64) { *self = self.simd.and_mask64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitAnd> for i64 { type Output = mask64x8; #[inline(always)] fn bitand(self, rhs: mask64x8) -> Self::Output { rhs.simd.and_mask64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitOr for mask64x8 { type Output = Self; #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { self.simd.or_mask64x8(self, rhs) } } impl core::ops::BitOrAssign for mask64x8 { #[doc = "Compute the logical OR of two masks."] #[inline(always)] fn bitor_assign(&mut self, rhs: Self) { *self = self.simd.or_mask64x8(*self, rhs); } } impl core::ops::BitOr for mask64x8 { type Output = Self; #[inline(always)] fn bitor(self, rhs: i64) -> Self::Output { self.simd.or_mask64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitOrAssign for mask64x8 { #[inline(always)] fn bitor_assign(&mut self, rhs: i64) { *self = self.simd.or_mask64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitOr> for i64 { type Output = mask64x8; #[inline(always)] fn bitor(self, rhs: mask64x8) -> Self::Output { rhs.simd.or_mask64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::BitXor for mask64x8 { type Output = Self; #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor(self, rhs: Self) -> Self::Output { self.simd.xor_mask64x8(self, rhs) } } impl core::ops::BitXorAssign for mask64x8 { #[doc = "Compute the logical XOR of two masks."] #[inline(always)] fn bitxor_assign(&mut self, rhs: Self) { *self = self.simd.xor_mask64x8(*self, rhs); } } impl core::ops::BitXor for mask64x8 { type Output = Self; #[inline(always)] fn bitxor(self, rhs: i64) -> Self::Output { self.simd.xor_mask64x8(self, rhs.simd_into(self.simd)) } } impl core::ops::BitXorAssign for mask64x8 { #[inline(always)] fn bitxor_assign(&mut self, rhs: i64) { *self = self.simd.xor_mask64x8(*self, rhs.simd_into(self.simd)); } } impl core::ops::BitXor> for i64 { type Output = mask64x8; #[inline(always)] fn bitxor(self, rhs: mask64x8) -> Self::Output { rhs.simd.xor_mask64x8(self.simd_into(rhs.simd), rhs) } } impl core::ops::Not for mask64x8 { type Output = Self; #[doc = "Compute the logical NOT of the mask."] #[inline(always)] fn not(self) -> Self::Output { self.simd.not_mask64x8(self) } }