]> git.karo-electronics.de Git - mv-sheeva.git/blob - arch/arm/lib/gcclib.h
[PATCH] ARM: Remove gcc type-isms from GCC helper functions
[mv-sheeva.git] / arch / arm / lib / gcclib.h
1 /* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */
2 /* I Molton     29/07/01 */
3
4 #include <linux/types.h>
5
6 #define BITS_PER_UNIT  8
7 #define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT)
8
9 #ifdef __ARMEB__
10   struct DIstruct {s32 high, low;};
11 #else
12   struct DIstruct {s32 low, high;};
13 #endif
14
15 typedef union
16 {
17   struct DIstruct s;
18   s64 ll;
19 } DIunion;
20