2 * Written by J.T. Conklin <jtc@NetBSD.org>.
6 #include <machine/asm.h>
9 RCSID("$NetBSD: swab.S,v 1.13 2007/11/12 18:42:00 ad Exp $")
13 * On the i486, this code is negligibly faster than the code generated
14 * by gcc at about half the size. If my i386 databook is correct, it
15 * should be considerably faster than the gcc code on a i386.
26 testl $7,%ecx # copy first group of 1 to 7 words
27 jz L2 # while swapping alternate bytes.
36 L2: shrl $3,%ecx # copy remainder 8 words at a time
37 jz L4 # while swapping alternate bytes.