2 * String handling functions for PowerPC.
4 * Copyright (C) 1996 Paul Mackerras.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
11 #include <asm/processor.h>
12 #include <asm/errno.h>
13 #include <asm/ppc_asm.h>
14 #include <asm/export.h>
19 andi. r0,r0,7 /* # bytes to be 8-byte aligned */
21 cmplw cr1,r5,r0 /* do we get that far? */
26 beq+ 3f /* if already 8-byte aligned */
88 _GLOBAL(backwards_memcpy)
89 rlwinm. r7,r5,32-3,3,31 /* r0 = r5 >> 3 */
120 rlwinm. r7,r5,32-3,3,31
124 EXPORT_SYMBOL(memmove)