summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/amd64/net/ntohl.S
blob: cd4c34cc492052837047bfbe1c5d8b175b0bd360 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*	$OpenBSD: ntohl.S,v 1.4 2018/07/03 23:14:05 mortimer Exp $	*/

/* Written by Artur Grabowski. Public Domain */

#include <machine/asm.h>

ENTRY(ntohl)
	RETGUARD_SETUP(ntohl, r11)
	movl    %edi,%eax
	bswapl  %eax
	RETGUARD_CHECK(ntohl, r11)
	ret
END(ntohl)