On Mon, Mar 23, 2015 at 12:08 PM, David Miller <davem@xxxxxxxxxxxxx> wrote: > > Sure you could do that in C, but I really want to avoid using memcpy() > if dst and src overlap in any way at all. > > Said another way, I don't want to codify that "64" thing. The next > chip could do 128 byte initializing stores. But David, THAT IS NOT WHAT YOUR BROKEN ASM DOES ANYWAY! Read it again. Your asm code does not check for overlap. Look at this: cmp %o0, %o1 bleu,pt %xcc, 2f and ponder. It's wrong. So even if you don't want to take that "allow overlap more than 64 bytes apart" thing, my C version actually is *better* than the broken asm version you have. The new asm version is better than the old one, because the new breakage is about really bad performance rather than actively breaking, but still.. Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>