81918bf8b4
the processor family now. x86_64 is kept as the MACHINE_ARCH value, since it's already widely used (by e.g. the toolchain, etc), and by other operating systems.
20 lines
411 B
C
20 lines
411 B
C
/* $NetBSD: bswap.h,v 1.1 2003/04/26 18:39:38 fvdl Exp $ */
|
|
|
|
/* Written by Manuel Bouyer. Public domain */
|
|
|
|
#ifndef _MACHINE_BSWAP_H_
|
|
#define _MACHINE_BSWAP_H_
|
|
|
|
#define __BSWAP_RENAME
|
|
#include <sys/bswap.h>
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <machine/byte_swap.h>
|
|
#define bswap16(x) __byte_swap_word(x)
|
|
#define bswap32(x) __byte_swap_long(x)
|
|
|
|
#endif /* __GNUC__ */
|
|
|
|
#endif /* !_MACHINE_BSWAP_H_ */
|