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 <ppc_asm.tmpl>
12 #include <asm/errno.h>
34 bdnzf 2,1b /* dec ctr, branch if ctr != 0 && !cr0.eq */
84 rlwinm r0,r5,32-2,2,31
113 rlwinm. r7,r5,32-3,3,31 /* r0 = r5 >> 3 */
116 beq 2f /* if less than 8 bytes to do */
117 andi. r0,r6,3 /* get dest word aligned */
148 rlwinm. r7,r5,32-3,3,31
153 .globl backwards_memcpy
155 rlwinm. r7,r5,32-3,3,31 /* r0 = r5 >> 3 */
185 rlwinm. r7,r5,32-3,3,31