Struct hagane_simd::vector::long2
[−]
[src]
#[repr(C)] #[repr(simd)]pub struct long2(pub i64, pub i64);
Methods
impl long2
[src]
Trait Implementations
impl Vector for long2
[src]
type Scalar = i64
type Boolean = long2
type CharVector = char2
type ShortVector = short2
type IntVector = int2
type LongVector = long2
type UCharVector = uchar2
type UShortVector = ushort2
type UIntVector = uint2
type ULongVector = ulong2
type FloatVector = float2
type DoubleVector = double2
fn map_unary(self, f: &Fn(Self::Scalar) -> Self::Scalar) -> Self
fn map_binary(
self,
other: Self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self
self,
other: Self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self
fn reduce(
self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self::Scalar
self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self::Scalar
fn abs(self) -> Self
fn to_char_sat(self) -> char2
fn to_uchar_sat(self) -> uchar2
fn to_short_sat(self) -> short2
fn to_ushort_sat(self) -> ushort2
fn to_int_sat(self) -> int2
fn to_uint_sat(self) -> uint2
fn to_long_sat(self) -> long2
fn to_ulong_sat(self) -> ulong2
fn bitcast<T: Vector>(x: T) -> Self
fn broadcast(x: Self::Scalar) -> Self
fn extract(self, i: u32) -> Self::Scalar
fn replace(self, i: u32, value: Self::Scalar) -> Self
fn add_mul(self, a: Self, b: Self) -> Self
fn eq(self, other: Self) -> Self::Boolean
fn ne(self, other: Self) -> Self::Boolean
fn lt(self, other: Self) -> Self::Boolean
fn le(self, other: Self) -> Self::Boolean
fn gt(self, other: Self) -> Self::Boolean
fn ge(self, other: Self) -> Self::Boolean
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
fn reduce_add(self) -> Self::Scalar
fn reduce_max(self) -> Self::Scalar
fn reduce_min(self) -> Self::Scalar
fn to_char(self) -> Self::CharVector
fn to_short(self) -> Self::ShortVector
fn to_int(self) -> Self::IntVector
fn to_long(self) -> Self::LongVector
fn to_uchar(self) -> Self::UCharVector
fn to_ushort(self) -> Self::UShortVector
fn to_uint(self) -> Self::UIntVector
fn to_ulong(self) -> Self::ULongVector
fn to_float(self) -> Self::FloatVector
fn to_double(self) -> Self::DoubleVector
fn to_boolean(self) -> Self::Boolean
impl Dot<long2> for long2
[src]
type DotProduct = i64
fn dot(self, other: Self) -> Self::DotProduct
impl Integer for long2
[src]
type IntegerScalar = i64
const SIGN_MASK: i64
SIGN_MASK: i64 = std::i64::MIN
fn reduce_and(self) -> Self::Scalar
fn reduce_or(self) -> Self::Scalar
fn reduce_xor(self) -> Self::Scalar
fn all(self) -> bool
fn any(self) -> bool
impl Select<long2> for long2
[src]
const MASK_SHIFT: i64
MASK_SHIFT: i64 = 63
fn bitselect(self, a: long2, b: long2) -> long2
fn select(self, a: T, b: T) -> T
impl Select<ulong2> for long2
[src]
const MASK_SHIFT: i64
MASK_SHIFT: i64 = 63
fn bitselect(self, a: ulong2, b: ulong2) -> ulong2
fn select(self, a: T, b: T) -> T
impl Select<double2> for long2
[src]
const MASK_SHIFT: i64
MASK_SHIFT: i64 = 63
fn bitselect(self, a: double2, b: double2) -> double2
fn select(self, a: T, b: T) -> T
impl Copy for long2
[src]
impl Clone for long2
[src]
fn clone(&self) -> long2
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for long2
[src]
impl Add<long2> for long2
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: Self) -> Self
The method for the +
operator
impl Add<i64> for long2
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: i64) -> Self
The method for the +
operator
impl Sub<long2> for long2
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: Self) -> Self
The method for the -
operator
impl Sub<i64> for long2
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: i64) -> Self
The method for the -
operator
impl Mul<long2> for long2
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: Self) -> Self
The method for the *
operator
impl Mul<i64> for long2
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: i64) -> Self
The method for the *
operator
impl Div<long2> for long2
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, other: Self) -> Self
The method for the /
operator
impl Div<i64> for long2
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, other: i64) -> Self
The method for the /
operator
impl Neg for long2
[src]
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self
The method for the unary -
operator
impl PartialEq for long2
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Self) -> bool
This method tests for !=
.
impl BitAnd<long2> for long2
[src]
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, other: Self) -> Self
The method for the &
operator
impl BitAnd<i64> for long2
[src]
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, other: i64) -> Self
The method for the &
operator
impl BitOr<long2> for long2
[src]
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, other: Self) -> Self
The method for the |
operator
impl BitOr<i64> for long2
[src]
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, other: i64) -> Self
The method for the |
operator
impl BitXor<long2> for long2
[src]
type Output = Self
The resulting type after applying the ^
operator
fn bitxor(self, other: Self) -> Self
The method for the ^
operator
impl BitXor<i64> for long2
[src]
type Output = Self
The resulting type after applying the ^
operator
fn bitxor(self, other: i64) -> Self
The method for the ^
operator
impl Shl<long2> for long2
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: Self) -> Self
The method for the <<
operator
impl Shl<i64> for long2
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: i64) -> Self
The method for the <<
operator
impl Shr<long2> for long2
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: Self) -> Self
The method for the >>
operator
impl Shr<i64> for long2
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: i64) -> Self
The method for the >>
operator
impl Rem for long2
[src]
type Output = Self
The resulting type after applying the %
operator
fn rem(self, other: Self) -> Self
The method for the %
operator
impl Not for long2
[src]
type Output = Self
The resulting type after applying the !
operator
fn not(self) -> Self
The method for the unary !
operator