b6cbf7203b
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.
18 lines
400 B
ArmAsm
18 lines
400 B
ArmAsm
/* $NetBSD: byte_swap_4.S,v 1.2 2006/02/04 21:53:31 uwe Exp $ */
|
|
|
|
#include <machine/asm.h>
|
|
#if defined(LIBC_SCCS)
|
|
RCSID("$NetBSD: byte_swap_4.S,v 1.2 2006/02/04 21:53:31 uwe Exp $")
|
|
#endif
|
|
|
|
#if defined(_KERNEL) || defined(_STANDALONE)
|
|
_ENTRY(_C_LABEL(bswap32))
|
|
#else
|
|
_ENTRY(_C_LABEL(__bswap32))
|
|
#endif
|
|
_ENTRY(_C_LABEL(ntohl))
|
|
_ENTRY(_C_LABEL(htonl))
|
|
_PROF_PROLOGUE
|
|
movl %edi,%eax
|
|
bswapl %eax
|
|
ret
|