Sudip Mukherjee | a44ce52 | 2016-07-26 15:21:23 -0700 | [diff] [blame] | 1 | #ifndef __ASM_LIBGCC_H |
2 | #define __ASM_LIBGCC_H | ||||
3 | |||||
4 | #include <asm/byteorder.h> | ||||
5 | |||||
6 | #ifdef __BIG_ENDIAN | ||||
7 | struct DWstruct { | ||||
8 | int high, low; | ||||
9 | }; | ||||
10 | #elif defined(__LITTLE_ENDIAN) | ||||
11 | struct DWstruct { | ||||
12 | int low, high; | ||||
13 | }; | ||||
14 | #else | ||||
15 | #error I feel sick. | ||||
16 | #endif | ||||
17 | |||||
18 | typedef union { | ||||
19 | struct DWstruct s; | ||||
20 | long long ll; | ||||
21 | } DWunion; | ||||
22 | |||||
23 | #endif /* __ASM_LIBGCC_H */ |