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 | 3ade2fe | 2005-06-20 16:45:32 +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 | 3ade2fe | 2005-06-20 16:45:32 +0100 | [diff] [blame^] | 10 | struct DIstruct { |
11 | s32 high, low; | ||||
12 | }; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #else |
Russell King | 3ade2fe | 2005-06-20 16:45:32 +0100 | [diff] [blame^] | 14 | struct DIstruct { |
15 | s32 low, high; | ||||
16 | }; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #endif |
18 | |||||
Russell King | 3ade2fe | 2005-06-20 16:45:32 +0100 | [diff] [blame^] | 19 | typedef union { |
20 | struct DIstruct s; | ||||
21 | s64 ll; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | } DIunion; |