blob: 8b6dcc656de779c3b2d030f0577238fe59e41954 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */
2/* I Molton 29/07/01 */
3
Russell Kingf29481c2005-06-20 15:49:59 +01004#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Russell King3ade2fe2005-06-20 16:45:32 +01006#define BITS_PER_UNIT 8
7#define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT)
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9#ifdef __ARMEB__
Russell King3ade2fe2005-06-20 16:45:32 +010010struct DIstruct {
11 s32 high, low;
12};
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#else
Russell King3ade2fe2005-06-20 16:45:32 +010014struct DIstruct {
15 s32 low, high;
16};
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif
18
Russell King3ade2fe2005-06-20 16:45:32 +010019typedef union {
20 struct DIstruct s;
21 s64 ll;
Linus Torvalds1da177e2005-04-16 15:20:36 -070022} DIunion;