pub struct SseReg { /* private fields */ }Expand description
SIMD register type wrapper
This abstracts over __m128i (SSE2) and __m256i (AVX2) types, matching the C++ SSERegI typedef.
Implementations§
Source§impl SseReg
impl SseReg
Sourcepub fn set1_epi16(value: i16) -> Self
pub fn set1_epi16(value: i16) -> Self
Set all 16-bit elements to the same value
Sourcepub fn extract_epi16(&self, index: i32) -> i16
pub fn extract_epi16(&self, index: i32) -> i16
Extract a 16-bit element by index
Sourcepub fn cmpeq_epi16(&self, other: &Self) -> Self
pub fn cmpeq_epi16(&self, other: &Self) -> Self
Compare 16-bit integers for equality
Sourcepub fn adds_epi16(&self, other: &Self) -> Self
pub fn adds_epi16(&self, other: &Self) -> Self
Add signed 16-bit integers with saturation
Sourcepub fn hmax_epi16(&self) -> i16
pub fn hmax_epi16(&self) -> i16
Compute horizontal maximum of i16 elements
This matches the C++ sse_max_score_i16 macro.
Trait Implementations§
impl Copy for SseReg
Auto Trait Implementations§
impl Freeze for SseReg
impl RefUnwindSafe for SseReg
impl Send for SseReg
impl Sync for SseReg
impl Unpin for SseReg
impl UnsafeUnpin for SseReg
impl UnwindSafe for SseReg
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