xref: /netbsd-src/common/lib/libc/arch/x86_64/gen/byte_swap_8.S (revision 502c621104d19fa80758525d6d65ad2f85c13044)
1*502c6211Suebayasi/*	$NetBSD: byte_swap_8.S,v 1.2 2014/05/22 15:23:11 uebayasi Exp $	*/
256da4fa7Sjoerg
356da4fa7Sjoerg/*
456da4fa7Sjoerg * Written by Frank van der Linden (fvdl@wasabisystems.com)
556da4fa7Sjoerg * Public Domain.
656da4fa7Sjoerg */
756da4fa7Sjoerg
856da4fa7Sjoerg#include <machine/asm.h>
956da4fa7Sjoerg
1056da4fa7Sjoerg#if defined(LIBC_SCCS)
11*502c6211Suebayasi	RCSID("$NetBSD: byte_swap_8.S,v 1.2 2014/05/22 15:23:11 uebayasi Exp $")
1256da4fa7Sjoerg#endif
1356da4fa7Sjoerg
1456da4fa7SjoergENTRY(bswap64)
1556da4fa7Sjoerg	bswapq	%rdi
1656da4fa7Sjoerg	movq	%rdi,%rax
1756da4fa7Sjoerg	ret
18*502c6211SuebayasiEND(bswap64)
19