mirror of
https://github.com/cberner/raptorq.git
synced 2024-06-16 03:49:00 +00:00
Fix alignment error on ARM
This commit is contained in:
parent
27d46b74af
commit
1490c5a61f
@ -689,8 +689,10 @@ unsafe fn store_neon(ptr: *mut uint8x16_t, value: uint8x16_t) {
|
|||||||
|
|
||||||
// TODO: replace with vst1q_u8 when it's supported
|
// TODO: replace with vst1q_u8 when it's supported
|
||||||
let reinterp = vreinterpretq_u64_u8(value);
|
let reinterp = vreinterpretq_u64_u8(value);
|
||||||
*(ptr as *mut u64) = vgetq_lane_u64(reinterp, 0);
|
(ptr as *mut u64).write_unaligned(vgetq_lane_u64(reinterp, 0));
|
||||||
*(ptr as *mut u64).add(1) = vgetq_lane_u64(reinterp, 1);
|
(ptr as *mut u64)
|
||||||
|
.add(1)
|
||||||
|
.write_unaligned(vgetq_lane_u64(reinterp, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(target_arch = "aarch64", feature = "std"))]
|
#[cfg(all(target_arch = "aarch64", feature = "std"))]
|
||||||
|
Loading…
Reference in New Issue
Block a user