4.1cBSD/usr/src/lib/libc/net/misc/htons.c

Compare this file to the similar file:
Show the results in this format:

/* @(#)htons.c	4.1 12/15/82 */
/* hostorder = htons(netorder) */

#include "DEFS.h"

ENTRY(htons)
	rotl	$8,4(ap),r0
	movb	5(ap),r0
	movzwl	r0,r0
	ret