7 ms·
No: many (most?) modern SIMD instructions don’t require alignment. From the Intel Intrinsics Guide (can’t figure out how to link directly to it, sorry) on _mm_l
by secure 8y ago
No: many (most?) modern SIMD instructions don’t require alignment. From the Intel Intrinsics Guide (can’t figure out how to link directly to it, sorry) on _mm_loadu_si128:
> Load 128-bits of integer data from memory into dst. mem_addr does not need to be aligned on any particular boundary.
- detaro 8y agoDoesn't need, but is there a performance difference? I seem to remember there is no difference between _mm_load_si128 and _mm_loadu_si128 on modern CPUs, but I'm not sure.
- deleted 8y ago[deleted]
- mattkrause 8y agoloadu is not the best example because its sole purpose is loading unaligned data. There is a separate load for aligned data.