bcopyxx/memmove: fix alignment logic for reverse moves
authorH. Peter Anvin <hpa@zytor.com>
Sun, 17 May 2009 02:02:38 +0000 (19:02 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 17 May 2009 02:02:38 +0000 (19:02 -0700)
commita5545eebb18fd3da0df4976f3c64b9e38f028a7f
treecb0e19b3d93aa8e91bc316d7dd55bc8f8970bdb9
parente7ffeff65d02ea5e7ebd03adfc70376bc8789aa5
bcopyxx/memmove: fix alignment logic for reverse moves

The alignment logic for reverse moves is reversed, because the initial
edi, and therefore edx, points to the last byte, not to one byte
beyond the end.  Therefore, in the fully aligned case it will end in
11 binary, not in 00 binary as for the forward case.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/memmove.S
core/bcopyxx.inc