* Copyright (c) 1988 Regents of the University of California.
* %sccs.include.redist.c%
* This code is derived from software contributed to Berkeley by
#if defined(LIBC_SCCS) && !defined(lint)
.asciz "@(#)memmove.s 5.2 (Berkeley) %G%"
#endif /* LIBC_SCCS and not lint */
/* void *memmove(to, from, size) */
bgtru 1f /* normal forward case */
beql 2f /* equal, nothing to do */
addl2 r2,r0 /* may be overlapping */
subl2 r2,r0 /* normal forward case */
movl 4(fp),r0 /* this can probably be optimised */
addl2 r2,r1 /* overlapping, must do backwards */