1*54395Storek/* 2*54395Storek * Copyright (c) 1992 The Regents of the University of California. 3*54395Storek * All rights reserved. 4*54395Storek * 5*54395Storek * This software was developed by the Computer Systems Engineering group 6*54395Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7*54395Storek * contributed to Berkeley. 8*54395Storek * 9*54395Storek * %sccs.include.redist.c% 10*54395Storek * 11*54395Storek * from: $Header: ntohs.s,v 1.1 92/06/25 12:47:07 torek Exp $ 12*54395Storek */ 13*54395Storek 14*54395Storek#if defined(LIBC_SCCS) && !defined(lint) 15*54395Storek .asciz "@(#)ntohs.s 5.1 (Berkeley) 06/25/92" 16*54395Storek#endif /* LIBC_SCCS and not lint */ 17*54395Storek 18*54395Storek/* hostorder = ntohs(netorder) */ 19*54395Storek 20*54395Storek#include "DEFS.h" 21*54395Storek 22*54395StorekENTRY(ntohs) 23*54395Storek sethi %hi(0xffff0000), %o1 24*54395Storek retl 25*54395Storek andn %o0, %o1, %o0 26