xref: /netbsd-src/common/lib/libc/arch/x86_64/gen/byte_swap_4.S (revision 274254cdae52594c1aa480a736aef78313d15c9c)
1/*	$NetBSD: byte_swap_4.S,v 1.2 2006/02/04 21:53:31 uwe Exp $	*/
2
3#include <machine/asm.h>
4#if defined(LIBC_SCCS)
5	RCSID("$NetBSD: byte_swap_4.S,v 1.2 2006/02/04 21:53:31 uwe Exp $")
6#endif
7
8#if defined(_KERNEL) || defined(_STANDALONE)
9_ENTRY(_C_LABEL(bswap32))
10#else
11_ENTRY(_C_LABEL(__bswap32))
12#endif
13_ENTRY(_C_LABEL(ntohl))
14_ENTRY(_C_LABEL(htonl))
15_PROF_PROLOGUE
16	movl	%edi,%eax
17	bswapl	%eax
18	ret
19