4 ms·
A real implementation should swap bytes until the pointers are both aligned correctly. On some platforms unaligned memory accesses cause an exception, but on x8
by YourDadVPN 3y 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.