doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

m_swap.h (296B)


      1 #ifndef __M_SWAP__
      2 #define __M_SWAP__
      3 
      4 #ifdef __BIG_ENDIAN__
      5 short	SwapSHORT(short);
      6 long	SwapLONG(long);
      7 #define SHORT(x)	((short)SwapSHORT((unsigned short) (x)))
      8 #define LONG(x)         ((long)SwapLONG((unsigned long) (x)))
      9 #else
     10 #define SHORT(x)	(x)
     11 #define LONG(x)         (x)
     12 #endif
     13 
     14 #endif