15 lines
318 B
ArmAsm
15 lines
318 B
ArmAsm
/* $NetBSD: byte_swap_4.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */
|
|
|
|
#include <machine/asm.h>
|
|
#if defined(LIBC_SCCS)
|
|
RCSID("$NetBSD: byte_swap_4.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $")
|
|
#endif
|
|
|
|
_ENTRY(_C_LABEL(__bswap32))
|
|
_ENTRY(_C_LABEL(ntohl))
|
|
_ENTRY(_C_LABEL(htonl))
|
|
_PROF_PROLOGUE
|
|
movl %edi,%eax
|
|
bswapl %eax
|
|
ret
|