am af00228b: Revert "libc: memmove(): non-overlapping block optim."

Merge commit 'af00228b705b53165c132a22b30c2d6cbb9acd13' into gingerbread-plus-aosp

* commit 'af00228b705b53165c132a22b30c2d6cbb9acd13':
  Revert "libc: memmove(): non-overlapping block optim."
This commit is contained in:
Marco Nelissen 2010-09-28 10:29:50 -07:00 committed by Android Git Automerger
commit 0da2a8eb87

View File

@ -31,11 +31,7 @@ void *memmove(void *dst, const void *src, size_t n)
{
const char *p = src;
char *q = dst;
/* we can use highgly-optimized memcpy() if the destination
* is before the source, or if the two blocks are non-overlapping
*/
if (__builtin_expect((q < p || (q-p) <= (ptrdiff_t)n), 1)) {
if (__builtin_expect(q < p, 1)) {
return memcpy(dst, src, n);
} else {
#define PRELOAD_DISTANCE 64