memmove: don't reverse copy if there is no overlap
authorH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 00:28:23 +0000 (16:28 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 00:28:23 +0000 (16:28 -0800)
commit48cb36465251f4b44797ef3bdfe446ef58e728cb
treebb65083e2cf7d7af6db78d0d29fa40c2c0a85459
parentdd01ec19a62c769e37416878dbe63989d2526660
memmove: don't reverse copy if there is no overlap

Don't do reverse copies if there is no overlap.  Current x86 CPUs
optimize forward copies, but some of them don't optimize reverse
copies.

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