3 ms·
Maybe due alignment, on ARM unaligned dereference would crash if I remember correctly. So it's safe to copy the value first and use that aligned memory for the
by cryo 4y ago
Maybe due alignment, on ARM unaligned dereference would crash if I remember correctly. So it's safe to copy the value first and use that aligned memory for the comparison.
- strager 4y agoThat would imply that the input array given to qsort was misaligned. I don't think alignment is an issue in the comparator.
- scaredginger 4y agoYeah, I'm pretty sure you're right, the author might just be cargo culting here