pub struct I32x4(pub [i32; 4]);Expand description
4-lane vector of 32-bit signed integers (128-bit).
Common uses:
- Accumulated DCT results
- Intermediate filter calculations
- SAD accumulation
Tuple Fields§
§0: [i32; 4]Implementations§
Source§impl I32x4
impl I32x4
Sourcepub const fn splat(value: i32) -> Self
pub const fn splat(value: i32) -> Self
Create a new vector with all lanes set to the same value.
Sourcepub const fn from_array(arr: [i32; 4]) -> Self
pub const fn from_array(arr: [i32; 4]) -> Self
Create a vector from an array.
Sourcepub fn horizontal_sum(self) -> i32
pub fn horizontal_sum(self) -> i32
Horizontal sum of all elements.
Sourcepub fn narrow_sat(self, high: Self) -> I16x8
pub fn narrow_sat(self, high: Self) -> I16x8
Narrow to I16x8 with another I32x4 (saturating).
Sourcepub fn as_mut_ptr(&mut self) -> *mut i32
pub fn as_mut_ptr(&mut self) -> *mut i32
Get a mutable pointer to the underlying array.
Trait Implementations§
impl Copy for I32x4
impl Eq for I32x4
impl StructuralPartialEq for I32x4
Auto Trait Implementations§
impl Freeze for I32x4
impl RefUnwindSafe for I32x4
impl Send for I32x4
impl Sync for I32x4
impl Unpin for I32x4
impl UnsafeUnpin for I32x4
impl UnwindSafe for I32x4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more