blob: 724f07f14f8d0e1ebd0ef7bd8e3451c18d5311d4 [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
Robin Getz96f10502009-09-24 14:11:24 +00002 * Copyright 2004-2009 Analog Devices Inc.
Bryan Wu1394f032007-05-06 14:50:22 -07003 *
Robin Getz96f10502009-09-24 14:11:24 +00004 * Licensed under the GPL-2 or later.
Bryan Wu1394f032007-05-06 14:50:22 -07005 */
6
7#define BITS_PER_UNIT 8
8#define SI_TYPE_SIZE (sizeof (SItype) * BITS_PER_UNIT)
9
10typedef unsigned int UQItype __attribute__ ((mode(QI)));
11typedef int SItype __attribute__ ((mode(SI)));
12typedef unsigned int USItype __attribute__ ((mode(SI)));
13typedef int DItype __attribute__ ((mode(DI)));
14typedef int word_type __attribute__ ((mode(__word__)));
15typedef unsigned int UDItype __attribute__ ((mode(DI)));
16
17struct DIstruct {
18 SItype low, high;
19};
20
21typedef union {
22 struct DIstruct s;
23 DItype ll;
24} DIunion;