File:  [Research Unix] / researchv9 / sys.vax / inet / goo.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

	.globl _htonl
	.align 2
_htonl: .word 0
	rotl	$-8,4(ap),r0
	insv	r0,$16,$8,r0
	movb	7(ap),r0
	ret

	.globl _htons
	.align 2
_htons: .word 0
	rotl	$8,4(ap),r0
	movb	5(ap),r0
	movzwl	r0,r0
	ret

	.globl _ntohl
	.align 2
_ntohl: .word 0
	rotl	$-8,4(ap),r0
	insv	r0,$16,$8,r0
	movb	7(ap),r0
	ret

	.globl _ntohs
	.align 2
_ntohs: .word 0
	rotl	$8,4(ap),r0
	movb	5(ap),r0
	movzwl	r0,r0
	ret


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.