blob: 283f5294cc3e17d72ce7a4da51611973c2de801a [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 Kingf29481c2005-06-20 15:49:59 +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 Kingf29481c2005-06-20 15:49:59 +010010 struct DIstruct {s32 high, low;};
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#else
Russell Kingf29481c2005-06-20 15:49:59 +010012 struct DIstruct {s32 low, high;};
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#endif
14
15typedef union
16{
17 struct DIstruct s;
Russell Kingf29481c2005-06-20 15:49:59 +010018 s64 ll;
Linus Torvalds1da177e2005-04-16 15:20:36 -070019} DIunion;
20