Home | History | Annotate | Line # | Download | only in include
bswap.h revision 1.3
      1  1.3     leo /*      $NetBSD: bswap.h,v 1.3 2001/03/30 20:00:05 leo Exp $      */
      2  1.1  bouyer 
      3  1.2  simonb #ifndef _MACHINE_BSWAP_H_
      4  1.2  simonb #define	_MACHINE_BSWAP_H_
      5  1.1  bouyer 
      6  1.3     leo #define	__BSWAP_RENAME
      7  1.2  simonb #include <sys/bswap.h>
      8  1.3     leo 
      9  1.3     leo #ifdef	__GNUC__
     10  1.3     leo 
     11  1.3     leo #include <m68k/byte_swap.h>
     12  1.3     leo 
     13  1.3     leo #define bswap16(x)	__byte_swap_word(x)
     14  1.3     leo #define bswap32(x)	__byte_swap_long(x)
     15  1.3     leo 
     16  1.3     leo #endif	/* __GNUC__ */
     17  1.1  bouyer 
     18  1.2  simonb #endif /* !_MACHINE_BSWAP_H_ */
     19