1*502c6211Suebayasi/* $NetBSD: byte_swap_4.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $ */ 237c9f0a6Schristos 337c9f0a6Schristos#include <machine/asm.h> 437c9f0a6Schristos#if defined(LIBC_SCCS) 5*502c6211Suebayasi RCSID("$NetBSD: byte_swap_4.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $") 637c9f0a6Schristos#endif 737c9f0a6Schristos 8c61d2c64Suwe#if defined(_KERNEL) || defined(_STANDALONE) 9c61d2c64Suwe_ENTRY(_C_LABEL(bswap32)) 10c61d2c64Suwe#else 1137c9f0a6Schristos_ENTRY(_C_LABEL(__bswap32)) 12c61d2c64Suwe#endif 1337c9f0a6Schristos_ENTRY(_C_LABEL(ntohl)) 1437c9f0a6Schristos_ENTRY(_C_LABEL(htonl)) 1537c9f0a6Schristos_PROF_PROLOGUE 1637c9f0a6Schristos movl %edi,%eax 1737c9f0a6Schristos bswapl %eax 1837c9f0a6Schristos ret 19*502c6211Suebayasi#if defined(_KERNEL) || defined(_STANDALONE) 20*502c6211SuebayasiEND(_C_LABEL(bswap32)) 21*502c6211Suebayasi#else 22*502c6211SuebayasiEND(_C_LABEL(__bswap32)) 23*502c6211Suebayasi#endif 24*502c6211SuebayasiEND(_C_LABEL(ntohl)) 25*502c6211SuebayasiEND(_C_LABEL(htonl)) 26