minix/common/lib/libc/arch/x86_64/gen/byte_swap_8.S
Gianluca Guida b6cbf7203b Import unmodified NetBSD libc in trunk
This patch imports the unmodified current version of NetBSD libc.
The NetBSD includes are in /nbsd_include, while the libc code itself is 
split between lib/nbsd_libc and common/lib/libc.
2011-02-14 19:36:03 +00:00

18 lines
331 B
ArmAsm

/* $NetBSD: byte_swap_8.S,v 1.1 2010/01/14 02:09:46 joerg Exp $ */
/*
* Written by Frank van der Linden (fvdl@wasabisystems.com)
* Public Domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: byte_swap_8.S,v 1.1 2010/01/14 02:09:46 joerg Exp $")
#endif
ENTRY(bswap64)
bswapq %rdi
movq %rdi,%rax
ret