3 ms·
That implementation will die with a bus error for seven out of every eight possible values of mem on most non-x86 architectures, zero out the wrong memory regio
by fhars 14y ago
That implementation will die with a bus error for seven out of every eight possible values of mem on most non-x86 architectures, zero out the wrong memory regions for these values on some more exotic architectures, and be horribly slow everywhere else.
http://stackoverflow.com/questions/1496848/does-unaligned-memory-access-always-cause-bus-errors http://stackoverflow.com/questions/1496848/does-unaligned-me...