Skip to content

Commit bfeeeb8

Browse files
committed
Removes alignment requirement in st3
1 parent 3fdc05a commit bfeeeb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/core_arch/src/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ macro_rules! deinterleaving_load {
280280
let arr: Arr = std::array::from_fn(|x| $crate::ptr::read_unaligned(($ptr as *const $elem).add(x)));
281281
// NOTE: repr(simd) adds padding to make the total size a power of two.
282282
// Hence writing W to ptr might write out of bounds.
283+
type W = Simd<$elem, { $lanes * 3 }>;
283284
let w: W = W::from_array(arr);
284285

285286
let v0: V = simd_shuffle!(w, w, deinterleave_mask::<$lanes, 3, 0>());

0 commit comments

Comments
 (0)