2 * Written by J.T. Conklin <jtc@NetBSD.org>.
6 #include <machine/asm.h>
9 RCSID("$NetBSD: swab.S,v 1.2 2003/07/26 19:24:40 salo Exp $")
12 #define LOAD_SWAP_STORE_WORD \
19 cld # set direction forward
22 testq $7,%rdx # copy first group of 1 to 7 words
23 jz L2 # while swapping alternate bytes.
31 L2: shrq $3,%rdx # copy remainder 8 words at a time
32 jz L4 # while swapping alternate bytes.