2 * Machine dependent integer conversions
4 * Copyright Miguel de Icaza, 1994
7 #if defined (mc68000) || defined (sparc)
9 #define CONV_LONG(a) (((a)&0xFF) << 24) | (((a) & 0xFF00) << 8) | (((unsigned long)(a) & 0xFF0000) >> 8) | ((unsigned long)((a)&0xFF000000) >> 24)
10 #define CONV_SHORT(a) (((a) & 0xFF) << 8) | (((unsigned long)(a) & 0xFF00) >> 8)
11 #define CONV_CHAR_TO_LONG(x) ((unsigned long)(x) >> 24)
12 #define CONV_SHORT_TO_LONG(x) ((unsigned long)(x) >> 16)
14 #define CONV_BITMAPINFO(a) ARCH_ConvBitmapInfo(a)
15 #define CONV_BITMAPCOREHEADER(a) ARCH_ConvCoreHeader(a)
17 #define CONV_LONG(a) (a)
18 #define CONV_SHORT(a) (a)
19 #define CONV_CHAR_TO_LONG(a) (a)
20 #define CONV_SHORT_TO_LONG(a) (a)
22 #define CONV_BITMAPINFO(a) /* */
23 #define CONV_BITMAPCOREHEADER(a) /* */