News for hackers. Stuff that matters.
Re:Memcpy vs. memmove by userbinator on Monday December 01, 2014 @11:33PM (#8685726)
Yes, there's been a recommendation floating around for a long time that branch/call targets should be 16-byte aligned. However, my experience is that modern x86 is basically almost completely insensitive to alignment in general (there are some small exceptions, like avoiding crossing cacheline boundaries in a loop.) It wouldn't surprise me if the NOPs only helped on earlier models, had no effect or even a negative effect on more recent CPUs, and were just left in out of tradition.
Re:Memcpy vs. memmove by derf_ on Tuesday December 02, 2014 @10:38AM (#8687600)
Depends on what you consider "modern". Core2 timings changed wildly based on code alignment (experienced myself and documented by others here: http://x264dev.multimedia.cx/archives/51).