j
k
j a
j l
... movb %cl, %al shrl $2, %ecx andb $3, %al rep movsl movb %al, %cl rep movsb I guess we don't care that this movs 256 bytes extra when al & 3 = 0.
movb %cl, %al shrl $2, %ecx andb $3, %al rep movsl movb %al, %cl rep movsb
I guess we don't care that this movs 256 bytes extra when al & 3 = 0.
No, it doesn't. "rep movs" doesn't do anything if (e)cx = 0.
Regards, Jens
Show replies by date
Jens Rottmann wrote:
...I guess we don't care that this movs 256 bytes extra when al & 3 = 0. No, it doesn't. "rep movs" doesn't do anything if (e)cx = 0.
Nice!
//Peter
coreboot@coreboot.org
Add to favorites Remove from favorites