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>
29 EXPORT_SYMBOL(__memset16)
30 EXPORT_SYMBOL(__memset32)
31 EXPORT_SYMBOL(__memset64)
36 andi. r0,r0,7 /* # bytes to be 8-byte aligned */
38 cmplw cr1,r5,r0 /* do we get that far? */
40 .Lms: PPC_MTOCRF(1,r0)
43 beq+ 3f /* if already 8-byte aligned */
105 _GLOBAL(backwards_memcpy)
106 rlwinm. r7,r5,32-3,3,31 /* r0 = r5 >> 3 */
137 rlwinm. r7,r5,32-3,3,31
141 EXPORT_SYMBOL(memmove)