summaryrefslogtreecommitdiff
path: root/lib/libc/arch/amd64/net/ntohl.S
blob: 0e39c1317e037071fe0ffb85300d21198f886458 (plain)
1
2
3
4
5
6
7
8
9
10
/*	$OpenBSD: ntohl.S,v 1.2 2004/02/10 00:08:11 drahn Exp $	*/

/* Written by Artur Grabowski. Public Domain */

#include <machine/asm.h>

ENTRY(_C_LABEL(ntohl))
	movl    %edi,%eax
	bswapl  %eax
	ret