1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8#if defined(LIBC_SCCS) && !defined(lint) 9 .asciz "@(#)htons.s 8.1 (Berkeley) 06/04/93" 10#endif /* LIBC_SCCS and not lint */ 11 12/* hostorder = htons(netorder) */ 13 14#include "DEFS.h" 15 16ENTRY(htons, 0) 17 rotl $8,4(ap),r0 18 movb 5(ap),r0 19 movzwl r0,r0 20 ret 21