mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 05:23:20 +00:00
* Make the swap procs safe for unaligned input ptrs
The copy to a temporary local variable is often elided by a sufficiently
smart compiler when it can prove the input pointer is aligned.
Refs #9206
* Explain why copyMem is used
(cherry picked from commit 1fe949b9d5)