NetBSD/sys/arch/amd64/include/bswap.h
mrg 433b5dde02 put the contents of these header files around #ifdef __x86_64__, and
#include the <i386/foo.h> in the #else clause, making these files
largely bit-size independant.
2008-10-26 00:08:15 +00:00

22 lines
371 B
C

/* $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_ */