aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/gcclib.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib/gcclib.h')
-rw-r--r--arch/arm/lib/gcclib.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/arm/lib/gcclib.h b/arch/arm/lib/gcclib.h
index 283f5294cc3e..8b6dcc656de7 100644
--- a/arch/arm/lib/gcclib.h
+++ b/arch/arm/lib/gcclib.h
@@ -3,18 +3,20 @@
3 3
4#include <linux/types.h> 4#include <linux/types.h>
5 5
6#define BITS_PER_UNIT 8 6#define BITS_PER_UNIT 8
7#define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT) 7#define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT)
8 8
9#ifdef __ARMEB__ 9#ifdef __ARMEB__
10 struct DIstruct {s32 high, low;}; 10struct DIstruct {
11 s32 high, low;
12};
11#else 13#else
12 struct DIstruct {s32 low, high;}; 14struct DIstruct {
15 s32 low, high;
16};
13#endif 17#endif
14 18
15typedef union 19typedef union {
16{ 20 struct DIstruct s;
17 struct DIstruct s; 21 s64 ll;
18 s64 ll;
19} DIunion; 22} DIunion;
20