* loop-invariant.c (invariant_for_use, check_dependencies): Fail for
[official-gcc.git] / gcc / ada / i-cexten.ads
blobd331fbd08302b6c029c8d433a2da38e3c3f7c4af
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- I N T E R F A C E S . C . E X T E N S I O N S --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
21 -- --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
28 -- --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
31 -- --
32 ------------------------------------------------------------------------------
34 -- This package contains additional C-related definitions, intended for use
35 -- with either manually or automatically generated bindings to C libraries.
37 with System;
39 package Interfaces.C.Extensions is
41 subtype void is System.Address;
42 subtype void_ptr is System.Address;
44 subtype opaque_structure_def is System.Address;
45 type opaque_structure_def_ptr is access opaque_structure_def;
47 subtype incomplete_class_def is System.Address;
48 type incomplete_class_def_ptr is access incomplete_class_def;
51 -- 64bit integer types
54 subtype long_long is Long_Long_Integer;
55 type unsigned_long_long is mod 2 ** 64;
58 -- Types for bitfields
61 type Unsigned_1 is mod 2 ** 1;
62 for Unsigned_1'Size use 1;
64 type Unsigned_2 is mod 2 ** 2;
65 for Unsigned_2'Size use 2;
67 type Unsigned_3 is mod 2 ** 3;
68 for Unsigned_3'Size use 3;
70 type Unsigned_4 is mod 2 ** 4;
71 for Unsigned_4'Size use 4;
73 type Unsigned_5 is mod 2 ** 5;
74 for Unsigned_5'Size use 5;
76 type Unsigned_6 is mod 2 ** 6;
77 for Unsigned_6'Size use 6;
79 type Unsigned_7 is mod 2 ** 7;
80 for Unsigned_7'Size use 7;
82 type Unsigned_8 is mod 2 ** 8;
83 for Unsigned_8'Size use 8;
85 type Unsigned_9 is mod 2 ** 9;
86 for Unsigned_9'Size use 9;
88 type Unsigned_10 is mod 2 ** 10;
89 for Unsigned_10'Size use 10;
91 type Unsigned_11 is mod 2 ** 11;
92 for Unsigned_11'Size use 11;
94 type Unsigned_12 is mod 2 ** 12;
95 for Unsigned_12'Size use 12;
97 type Unsigned_13 is mod 2 ** 13;
98 for Unsigned_13'Size use 13;
100 type Unsigned_14 is mod 2 ** 14;
101 for Unsigned_14'Size use 14;
103 type Unsigned_15 is mod 2 ** 15;
104 for Unsigned_15'Size use 15;
106 type Unsigned_16 is mod 2 ** 16;
107 for Unsigned_16'Size use 16;
109 type Unsigned_17 is mod 2 ** 17;
110 for Unsigned_17'Size use 17;
112 type Unsigned_18 is mod 2 ** 18;
113 for Unsigned_18'Size use 18;
115 type Unsigned_19 is mod 2 ** 19;
116 for Unsigned_19'Size use 19;
118 type Unsigned_20 is mod 2 ** 20;
119 for Unsigned_20'Size use 20;
121 type Unsigned_21 is mod 2 ** 21;
122 for Unsigned_21'Size use 21;
124 type Unsigned_22 is mod 2 ** 22;
125 for Unsigned_22'Size use 22;
127 type Unsigned_23 is mod 2 ** 23;
128 for Unsigned_23'Size use 23;
130 type Unsigned_24 is mod 2 ** 24;
131 for Unsigned_24'Size use 24;
133 type Unsigned_25 is mod 2 ** 25;
134 for Unsigned_25'Size use 25;
136 type Unsigned_26 is mod 2 ** 26;
137 for Unsigned_26'Size use 26;
139 type Unsigned_27 is mod 2 ** 27;
140 for Unsigned_27'Size use 27;
142 type Unsigned_28 is mod 2 ** 28;
143 for Unsigned_28'Size use 28;
145 type Unsigned_29 is mod 2 ** 29;
146 for Unsigned_29'Size use 29;
148 type Unsigned_30 is mod 2 ** 30;
149 for Unsigned_30'Size use 30;
151 type Unsigned_31 is mod 2 ** 31;
152 for Unsigned_31'Size use 31;
154 type Unsigned_32 is mod 2 ** 32;
155 for Unsigned_32'Size use 32;
157 type Signed_2 is range -2 ** 1 .. 2 ** 1 - 1;
158 for Signed_2'Size use 2;
160 type Signed_3 is range -2 ** 2 .. 2 ** 2 - 1;
161 for Signed_3'Size use 3;
163 type Signed_4 is range -2 ** 3 .. 2 ** 3 - 1;
164 for Signed_4'Size use 4;
166 type Signed_5 is range -2 ** 4 .. 2 ** 4 - 1;
167 for Signed_5'Size use 5;
169 type Signed_6 is range -2 ** 5 .. 2 ** 5 - 1;
170 for Signed_6'Size use 6;
172 type Signed_7 is range -2 ** 6 .. 2 ** 6 - 1;
173 for Signed_7'Size use 7;
175 type Signed_8 is range -2 ** 7 .. 2 ** 7 - 1;
176 for Signed_8'Size use 8;
178 type Signed_9 is range -2 ** 8 .. 2 ** 8 - 1;
179 for Signed_9'Size use 9;
181 type Signed_10 is range -2 ** 9 .. 2 ** 9 - 1;
182 for Signed_10'Size use 10;
184 type Signed_11 is range -2 ** 10 .. 2 ** 10 - 1;
185 for Signed_11'Size use 11;
187 type Signed_12 is range -2 ** 11 .. 2 ** 11 - 1;
188 for Signed_12'Size use 12;
190 type Signed_13 is range -2 ** 12 .. 2 ** 12 - 1;
191 for Signed_13'Size use 13;
193 type Signed_14 is range -2 ** 13 .. 2 ** 13 - 1;
194 for Signed_14'Size use 14;
196 type Signed_15 is range -2 ** 14 .. 2 ** 14 - 1;
197 for Signed_15'Size use 15;
199 type Signed_16 is range -2 ** 15 .. 2 ** 15 - 1;
200 for Signed_16'Size use 16;
202 type Signed_17 is range -2 ** 16 .. 2 ** 16 - 1;
203 for Signed_17'Size use 17;
205 type Signed_18 is range -2 ** 17 .. 2 ** 17 - 1;
206 for Signed_18'Size use 18;
208 type Signed_19 is range -2 ** 18 .. 2 ** 18 - 1;
209 for Signed_19'Size use 19;
211 type Signed_20 is range -2 ** 19 .. 2 ** 19 - 1;
212 for Signed_20'Size use 20;
214 type Signed_21 is range -2 ** 20 .. 2 ** 20 - 1;
215 for Signed_21'Size use 21;
217 type Signed_22 is range -2 ** 21 .. 2 ** 21 - 1;
218 for Signed_22'Size use 22;
220 type Signed_23 is range -2 ** 22 .. 2 ** 22 - 1;
221 for Signed_23'Size use 23;
223 type Signed_24 is range -2 ** 23 .. 2 ** 23 - 1;
224 for Signed_24'Size use 24;
226 type Signed_25 is range -2 ** 24 .. 2 ** 24 - 1;
227 for Signed_25'Size use 25;
229 type Signed_26 is range -2 ** 25 .. 2 ** 25 - 1;
230 for Signed_26'Size use 26;
232 type Signed_27 is range -2 ** 26 .. 2 ** 26 - 1;
233 for Signed_27'Size use 27;
235 type Signed_28 is range -2 ** 27 .. 2 ** 27 - 1;
236 for Signed_28'Size use 28;
238 type Signed_29 is range -2 ** 28 .. 2 ** 28 - 1;
239 for Signed_29'Size use 29;
241 type Signed_30 is range -2 ** 29 .. 2 ** 29 - 1;
242 for Signed_30'Size use 30;
244 type Signed_31 is range -2 ** 30 .. 2 ** 30 - 1;
245 for Signed_31'Size use 31;
247 type Signed_32 is range -2 ** 31 .. 2 ** 31 - 1;
248 for Signed_32'Size use 32;
250 end Interfaces.C.Extensions;