Home | History | Annotate | Line # | Download | only in include
bswap.h revision 1.2.2.1
      1  1.2.2.1  bouyer /*      $NetBSD: bswap.h,v 1.2.2.1 2000/11/20 20:32:47 bouyer Exp $      */
      2      1.1  bouyer 
      3      1.1  bouyer /* Written by Manuel Bouyer. Public domain */
      4      1.1  bouyer 
      5      1.2  simonb #ifndef _MACHINE_BSWAP_H_
      6      1.2  simonb #define	_MACHINE_BSWAP_H_
      7      1.1  bouyer 
      8      1.2  simonb #define __BSWAP_RENAME
      9      1.2  simonb #include <sys/bswap.h>
     10      1.1  bouyer 
     11      1.1  bouyer #ifdef  __GNUC__
     12      1.1  bouyer 
     13  1.2.2.1  bouyer #include <machine/byte_swap.h>
     14      1.1  bouyer #define bswap16(x)      __byte_swap_word(x)
     15      1.1  bouyer #define bswap32(x)      __byte_swap_long(x)
     16      1.1  bouyer 
     17      1.1  bouyer #endif /* __GNUC__ */
     18      1.1  bouyer 
     19      1.2  simonb #endif /* !_MACHINE_BSWAP_H_ */
     20