Return to swab.S CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / arch / x86_64 / string |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.2, 2003/07/26 19:24:40 | version 1.3, 2005/08/02 14:20:49 | ||
---|---|---|---|
|
|
||
shrq $1,%rdx | shrq $1,%rdx | ||
testq $7,%rdx # copy first group of 1 to 7 words | testq $7,%rdx # copy first group of 1 to 7 words | ||
jz L2 # while swaping alternate bytes. | jz L2 # while swapping alternate bytes. | ||
L1: lodsw | L1: lodsw | ||
rorw $8,%ax | rorw $8,%ax | ||
stosw | stosw |