When changing it to fix compatibility with strict-alignment architectures,
I switched it using a loop, but there's actually no need for this. It's
possible to achieve the same results with fewer instructions.
Change tested on the mips64el device where I used to have the alignment
issues, and on an x86 -fsanitize=alignment build.
Related to my own previous commit 3c3d35dafe.