11.3Suebayasi/* $NetBSD: byte_swap_4.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $ */ 21.1Schristos 31.1Schristos#include <machine/asm.h> 41.1Schristos#if defined(LIBC_SCCS) 51.3Suebayasi RCSID("$NetBSD: byte_swap_4.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $") 61.1Schristos#endif 71.1Schristos 81.2Suwe#if defined(_KERNEL) || defined(_STANDALONE) 91.2Suwe_ENTRY(_C_LABEL(bswap32)) 101.2Suwe#else 111.1Schristos_ENTRY(_C_LABEL(__bswap32)) 121.2Suwe#endif 131.1Schristos_ENTRY(_C_LABEL(ntohl)) 141.1Schristos_ENTRY(_C_LABEL(htonl)) 151.1Schristos_PROF_PROLOGUE 161.1Schristos movl %edi,%eax 171.1Schristos bswapl %eax 181.1Schristos ret 191.3Suebayasi#if defined(_KERNEL) || defined(_STANDALONE) 201.3SuebayasiEND(_C_LABEL(bswap32)) 211.3Suebayasi#else 221.3SuebayasiEND(_C_LABEL(__bswap32)) 231.3Suebayasi#endif 241.3SuebayasiEND(_C_LABEL(ntohl)) 251.3SuebayasiEND(_C_LABEL(htonl)) 26