[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] mutliboot2 second round
Date: Thu, 30 Jan 2020 02:09:40 +0000
From: Emmanuel Dreyfus <manu%netbsd.org@localhost>
| calling memmove() which requires setting up a stack in the text segment,
| or just do a rep movsq that assumes aligned non overlapping copy.
Or, the x86 assembly version of
if (d < s)
*d++ = *s++;
d[n] = s[n];
(everything being char * or a byte counter).
Just because fancy instructions, or optimised code, exist, doesn't
mean that it is always necessary to use them. Make it work, simply,
first, and then if this part is noticeably slow, it can be improved.
Main Index |
Thread Index |