Make this i386-compatible; massive clean-up.
[unix-history] / usr / src / lib / libc / vax / net / htonl.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 "@(#)htonl.s 5.6 (Berkeley) %G%"
f4f66d2c 10#endif /* LIBC_SCCS and not lint */
586c39b1 11
4e132424
SL
12/* netorder = htonl(hostorder) */
13
14#include "DEFS.h"
15
5d9cbc61 16ENTRY(htonl, 0)
4e132424
SL
17 rotl $-8,4(ap),r0
18 insv r0,$16,$8,r0
19 movb 7(ap),r0
20 ret