repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Drop main() prototype. Syncs with NetBSD-8
[minix.git]
/
common
/
lib
/
libc
/
arch
/
vax
/
gen
/
bswap64.S
blob
c94ba3caa45260a685db5986de69ad7a291edf6c
1
/* Written by Anders Magnusson. Public Domain */
2
3
#include <machine/asm.h>
4
5
RCSID("$NetBSD: bswap64.S,v 1.3 2011/01/25 04:45:28 matt Exp $")
6
7
ENTRY(bswap64, 0)
8
movq 4(%ap),%r3
9
rotl $-8,%r3,%r1
10
insv %r1,$16,$8,%r1
11
rotl $8,%r3,%r2
12
movb %r2,%r1
13
rotl $-8,%r4,%r0
14
insv %r0,$16,$8,%r0
15
rotl $8,%r4,%r2
16
movb %r2,%r0
17
ret
18
END(bswap64)