[ARM SMP] Fix another ARMv6 bitop problem
[linux-2.6-block.git] / arch / arm / lib / gcclib.h
CommitLineData
1da177e4
LT
1/* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */
2/* I Molton 29/07/01 */
3
f29481c0 4#include <linux/types.h>
1da177e4 5
3ade2fe0
RK
6#define BITS_PER_UNIT 8
7#define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT)
1da177e4
LT
8
9#ifdef __ARMEB__
3ade2fe0
RK
10struct DIstruct {
11 s32 high, low;
12};
1da177e4 13#else
3ade2fe0
RK
14struct DIstruct {
15 s32 low, high;
16};
1da177e4
LT
17#endif
18
3ade2fe0
RK
19typedef union {
20 struct DIstruct s;
21 s64 ll;
1da177e4 22} DIunion;