Make this i386-compatible; massive clean-up.
[unix-history] / usr / src / lib / libc / vax / net / ntohl.s
CommitLineData
586c39b1
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
f4f66d2c
KB
3 * All rights reserved.
4 *
019bea33 5 * %sccs.include.redist.c%
586c39b1
DF
6 */
7
f4f66d2c 8#if defined(LIBC_SCCS) && !defined(lint)
019bea33 9 .asciz "@(#)ntohl.s 5.6 (Berkeley) %G%"
f4f66d2c 10#endif /* LIBC_SCCS and not lint */
586c39b1 11
b2bd7fc4
SL
12/* hostorder = ntohl(netorder) */
13
14#include "DEFS.h"
15
5d9cbc61 16ENTRY(ntohl, 0)
b2bd7fc4
SL
17 rotl $-8,4(ap),r0
18 insv r0,$16,$8,r0
19 movb 7(ap),r0
20 ret