xref: /csrg-svn/lib/libc/i386/net/ntohs.s (revision 61129)
141049Swilliam/*-
2*61129Sbostic * Copyright (c) 1990, 1993
3*61129Sbostic *	The Regents of the University of California.  All rights reserved.
441049Swilliam *
541049Swilliam * This code is derived from software contributed to Berkeley by
641049Swilliam * William Jolitz.
741049Swilliam *
841049Swilliam * %sccs.include.redist.c%
941049Swilliam */
1041049Swilliam
1141049Swilliam#if defined(LIBC_SCCS) && !defined(lint)
12*61129Sbostic	.asciz "@(#)ntohs.s	8.1 (Berkeley) 06/04/93"
1341049Swilliam#endif /* LIBC_SCCS and not lint */
1441049Swilliam
1541049Swilliam/* hostorder = ntohs(netorder) */
1641049Swilliam
1741049Swilliam#include "DEFS.h"
1841049Swilliam
1941049SwilliamENTRY(ntohs)
2045825Swilliam	movzwl	4(%esp),%eax
2145825Swilliam	xchgb	%al,%ah
2241049Swilliam	ret
23