Revert "libc: memmove(): non-overlapping block optim."
This reverts commit 80fba9a2fe
,
which caused the system to not boot anymore, aborting with:
"java.lang.RuntimeException: Missing static main on com.android.server.SystemServer".
Change-Id: I745e0a23c728cccf5f95a3c7642d544478a4e57e
This commit is contained in:
parent
defd162212
commit
af00228b70
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue