Function safe_arch::load_unaligned_m128i
source · pub fn load_unaligned_m128i(a: &[u8; 16]) -> m128i
Expand description
Loads the reference into a register.
This generally has no speed penalty if the reference happens to be 16-byte aligned, but there is a slight speed penalty if the reference is less aligned.
let a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
let b = load_unaligned_m128i(&a);
assert_eq!(a, <[u8; 16]>::from(b));