Hacker News new | ask | show | jobs
by YourDadVPN 1120 days ago
A real implementation should swap bytes until the pointers are both aligned correctly. On some platforms unaligned memory accesses cause an exception, but on x86 it will work but be much slower.