Release 950430
[wine/multimedia.git] / include / arch.h
blobbe237faba2f62597006dfe71353b7fe3744f3a39
1 /*
2 * Machine dependent integer conversions
4 * Copyright Miguel de Icaza, 1994
5 */
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)
16 #else
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) /* */
24 #endif