xref: /netbsd/sys/arch/vax/include/bswap.h (revision bf9ec67e)
1 /*      $NetBSD: bswap.h,v 1.3 2000/05/27 16:44:14 ragge Exp $      */
2 
3 /* Written by Manuel Bouyer. Public domain */
4 
5 #ifndef _MACHINE_BSWAP_H_
6 #define	_MACHINE_BSWAP_H_
7 
8 #define __BSWAP_RENAME
9 #include <sys/bswap.h>
10 
11 #ifdef  __GNUC__
12 
13 #include <machine/byte_swap.h>
14 #define bswap16(x)      __byte_swap_word(x)
15 #define bswap32(x)      __byte_swap_long(x)
16 
17 #endif /* __GNUC__ */
18 
19 #endif /* !_MACHINE_BSWAP_H_ */
20