Subject: Re: Performance of various memcpy()'s
To: None <tech-perform@netbsd.org, port-i386@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: port-i386
Date: 10/22/2002 21:52:11
In message <20021023023745.GA1460@krishna>, Bang Jun-Young writes:
>BTW, I noticed that our i386 memcpy() in libc checks for overlapping,
>although the manpage says "to copy byte strings that overlap, use
>memmove(3)."

Probably because ISO C doesn't require memcpy() to cope with overlap,
so it's polite to warn people, but in practice, a lot of code depends
on memcpy working anyway.

-s