121444Sdist/* 2*61235Sbostic * Copyright (c) 1983, 1993 3*61235Sbostic * The Regents of the University of California. All rights reserved. 434814Sbostic * 542637Sbostic * %sccs.include.redist.c% 621444Sdist */ 721444Sdist 834814Sbostic#if defined(LIBC_SCCS) && !defined(lint) 9*61235Sbostic .asciz "@(#)ntohs.s 8.1 (Berkeley) 06/04/93" 1034814Sbostic#endif /* LIBC_SCCS and not lint */ 1121444Sdist 129718Ssam/* hostorder = ntohs(netorder) */ 139718Ssam 149718Ssam#include "DEFS.h" 159718Ssam 1634425SmckusickENTRY(ntohs, 0) 179718Ssam rotl $8,4(ap),r0 189718Ssam movb 5(ap),r0 199718Ssam movzwl r0,r0 209718Ssam ret 21