summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/bswap.h
blob: f4e90470b590e0347fea6e9ee9c40dfef86f9ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*      $NetBSD: bswap.h,v 1.3 2008/10/26 00:08:15 mrg Exp $      */

/* Written by Manuel Bouyer. Public domain */

#ifndef _X86_64_BSWAP_H_
#define	_X86_64_BSWAP_H_

#ifdef __x86_64__

#include <machine/byte_swap.h>

#define __BSWAP_RENAME
#include <sys/bswap.h>

#else	/*	__x86_64__	*/

#include <i386/bswap.h>

#endif	/*	__x86_64__	*/

#endif /* !_X86_64_BSWAP_H_ */