Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */ |
2 | /* I Molton 29/07/01 */ | ||||
3 | |||||
Russell King | f29481c | 2005-06-20 15:49:59 +0100 | [diff] [blame^] | 4 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Russell King | f29481c | 2005-06-20 15:49:59 +0100 | [diff] [blame^] | 6 | #define BITS_PER_UNIT 8 |
7 | #define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT) | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
9 | #ifdef __ARMEB__ | ||||
Russell King | f29481c | 2005-06-20 15:49:59 +0100 | [diff] [blame^] | 10 | struct DIstruct {s32 high, low;}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #else |
Russell King | f29481c | 2005-06-20 15:49:59 +0100 | [diff] [blame^] | 12 | struct DIstruct {s32 low, high;}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #endif |
14 | |||||
15 | typedef union | ||||
16 | { | ||||
17 | struct DIstruct s; | ||||
Russell King | f29481c | 2005-06-20 15:49:59 +0100 | [diff] [blame^] | 18 | s64 ll; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | } DIunion; |
20 |