xref: /csrg-svn/lib/libc/vax/net/ntohl.s (revision 21443)
1*21443Sdist/*
2*21443Sdist * Copyright (c) 1983 Regents of the University of California.
3*21443Sdist * All rights reserved.  The Berkeley software License Agreement
4*21443Sdist * specifies the terms and conditions for redistribution.
5*21443Sdist */
6*21443Sdist
7*21443Sdist#ifndef lint
8*21443Sdiststatic char sccsid[] = "@(#)ntohl.s	5.1 (Berkeley) 05/30/85";
9*21443Sdist#endif not lint
10*21443Sdist
119717Ssam/* hostorder = ntohl(netorder) */
129717Ssam
139717Ssam#include "DEFS.h"
149717Ssam
159717SsamENTRY(ntohl)
169717Ssam	rotl	$-8,4(ap),r0
179717Ssam	insv	r0,$16,$8,r0
189717Ssam	movb	7(ap),r0
199717Ssam	ret
20