summaryrefslogtreecommitdiff
path: root/lib/libc/arch/amd64/net/ntohl.S
blob: 4a21dc541ca13bd5288e0dbb3fb0da95350dc5c4 (plain)
1
2
3
4
5
6
7
8
9
10
/*	$OpenBSD: ntohl.S,v 1.1 2004/01/28 01:44:45 mickey Exp $	*/

/* Written by Artur Grabowski. Public Domain */

#include <machine/asm.h>

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