convert to use DEFS.h in ../../vax
[unix-history] / usr / src / lib / libc / vax / net / ntohl.s
CommitLineData
586c39b1
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
2ce81398 7#ifdef LIBC_SCCS
5d9cbc61 8_sccsid:.asciz "@(#)ntohl.s 5.4 (Berkeley) %G%"
2ce81398 9#endif LIBC_SCCS
586c39b1 10
b2bd7fc4
SL
11/* hostorder = ntohl(netorder) */
12
13#include "DEFS.h"
14
5d9cbc61 15ENTRY(ntohl, 0)
b2bd7fc4
SL
16 rotl $-8,4(ap),r0
17 insv r0,$16,$8,r0
18 movb 7(ap),r0
19 ret