Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 1 | /* |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 2 | * Copyright 2004-2009 Analog Devices Inc. |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 3 | * |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 4 | * Licensed under the GPL-2 or later. |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #define BITS_PER_UNIT 8 |
| 8 | #define SI_TYPE_SIZE (sizeof (SItype) * BITS_PER_UNIT) |
| 9 | |
| 10 | typedef unsigned int UQItype __attribute__ ((mode(QI))); |
| 11 | typedef int SItype __attribute__ ((mode(SI))); |
| 12 | typedef unsigned int USItype __attribute__ ((mode(SI))); |
| 13 | typedef int DItype __attribute__ ((mode(DI))); |
| 14 | typedef int word_type __attribute__ ((mode(__word__))); |
| 15 | typedef unsigned int UDItype __attribute__ ((mode(DI))); |
| 16 | |
| 17 | struct DIstruct { |
| 18 | SItype low, high; |
| 19 | }; |
| 20 | |
| 21 | typedef union { |
| 22 | struct DIstruct s; |
| 23 | DItype ll; |
| 24 | } DIunion; |