diff --git a/src/overloads.rs b/src/overloads.rs index d428d8b..8c2171e 100644 --- a/src/overloads.rs +++ b/src/overloads.rs @@ -244,12 +244,14 @@ macro_rules! impl_simd_base_overloads { impl Index for $s { type Output = ::Scalar; + #[inline(always)] fn index(&self, index: usize) -> &Self::Output { unsafe { &(*self.transmute_into_array_ref())[index] } } } impl IndexMut for $s { + #[inline(always)] fn index_mut(&mut self, index: usize) -> &mut Self::Output { unsafe { &mut (*self.transmute_into_array_mut())[index] } }