1/* $NetBSD: byte_swap_4.S,v 1.1 2005/12/20 19:28:51 christos Exp $ */ 2 3#include <machine/asm.h> 4#if defined(LIBC_SCCS) 5 RCSID("$NetBSD: byte_swap_4.S,v 1.1 2005/12/20 19:28:51 christos Exp $") 6#endif 7 8_ENTRY(_C_LABEL(__bswap32)) 9_ENTRY(_C_LABEL(ntohl)) 10_ENTRY(_C_LABEL(htonl)) 11_PROF_PROLOGUE 12 movl %edi,%eax 13 bswapl %eax 14 ret 15