OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [interfac.ads] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT COMPILER COMPONENTS                         --
4
--                                                                          --
5
--                           I N T E R F A C E S                            --
6
--                                                                          --
7
--                                 S p e c                                  --
8
--                                                                          --
9
--          Copyright (C) 2002-2011, Free Software Foundation, Inc.         --
10
--                                                                          --
11
-- This specification is derived from the Ada Reference Manual for use with --
12
-- GNAT. The copyright notice above, and the license provisions that follow --
13
-- apply solely to the implementation dependent sections of this file.      --
14
--                                                                          --
15
-- GNAT is free software;  you can  redistribute it  and/or modify it under --
16
-- terms of the  GNU General Public License as published  by the Free Soft- --
17
-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
18
-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
19
-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
20
-- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
21
--                                                                          --
22
-- As a special exception under Section 7 of GPL version 3, you are granted --
23
-- additional permissions described in the GCC Runtime Library Exception,   --
24
-- version 3.1, as published by the Free Software Foundation.               --
25
--                                                                          --
26
-- You should have received a copy of the GNU General Public License and    --
27
-- a copy of the GCC Runtime Library Exception along with this program;     --
28
-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
29
-- <http://www.gnu.org/licenses/>.                                          --
30
--                                                                          --
31
-- GNAT was originally developed  by the GNAT team at  New York University. --
32
-- Extensive contributions were provided by Ada Core Technologies Inc.      --
33
--                                                                          --
34
------------------------------------------------------------------------------
35
 
36
package Interfaces is
37
   pragma Pure;
38
 
39
   --  All identifiers in this unit are implementation defined
40
 
41
   pragma Implementation_Defined;
42
 
43
   type Integer_8  is range -2 **  7 .. 2 **  7 - 1;
44
   for Integer_8'Size use  8;
45
 
46
   type Integer_16 is range -2 ** 15 .. 2 ** 15 - 1;
47
   for Integer_16'Size use 16;
48
 
49
   type Integer_32 is range -2 ** 31 .. 2 ** 31 - 1;
50
   for Integer_32'Size use 32;
51
 
52
   type Integer_64 is range -2 ** 63 .. 2 ** 63 - 1;
53
   for Integer_64'Size use 64;
54
 
55
   type Unsigned_8  is mod 2 **  8;
56
   for Unsigned_8'Size use  8;
57
 
58
   type Unsigned_16 is mod 2 ** 16;
59
   for Unsigned_16'Size use 16;
60
 
61
   type Unsigned_32 is mod 2 ** 32;
62
   for Unsigned_32'Size use 32;
63
 
64
   type Unsigned_64 is mod 2 ** 64;
65
   for Unsigned_64'Size use 64;
66
 
67
   function Shift_Left
68
     (Value  : Unsigned_8;
69
      Amount : Natural) return Unsigned_8;
70
 
71
   function Shift_Right
72
     (Value  : Unsigned_8;
73
      Amount : Natural) return Unsigned_8;
74
 
75
   function Shift_Right_Arithmetic
76
     (Value  : Unsigned_8;
77
      Amount : Natural) return Unsigned_8;
78
 
79
   function Rotate_Left
80
     (Value  : Unsigned_8;
81
      Amount : Natural) return Unsigned_8;
82
 
83
   function Rotate_Right
84
     (Value  : Unsigned_8;
85
      Amount : Natural) return Unsigned_8;
86
 
87
   function Shift_Left
88
     (Value  : Unsigned_16;
89
      Amount : Natural) return Unsigned_16;
90
 
91
   function Shift_Right
92
     (Value  : Unsigned_16;
93
      Amount : Natural) return Unsigned_16;
94
 
95
   function Shift_Right_Arithmetic
96
     (Value  : Unsigned_16;
97
      Amount : Natural) return Unsigned_16;
98
 
99
   function Rotate_Left
100
     (Value  : Unsigned_16;
101
      Amount : Natural) return Unsigned_16;
102
 
103
   function Rotate_Right
104
     (Value  : Unsigned_16;
105
      Amount : Natural) return Unsigned_16;
106
 
107
   function Shift_Left
108
     (Value  : Unsigned_32;
109
      Amount : Natural) return Unsigned_32;
110
 
111
   function Shift_Right
112
     (Value  : Unsigned_32;
113
      Amount : Natural) return Unsigned_32;
114
 
115
   function Shift_Right_Arithmetic
116
     (Value  : Unsigned_32;
117
      Amount : Natural) return Unsigned_32;
118
 
119
   function Rotate_Left
120
     (Value  : Unsigned_32;
121
      Amount : Natural) return Unsigned_32;
122
 
123
   function Rotate_Right
124
     (Value  : Unsigned_32;
125
      Amount : Natural) return Unsigned_32;
126
 
127
   function Shift_Left
128
     (Value  : Unsigned_64;
129
      Amount : Natural) return Unsigned_64;
130
 
131
   function Shift_Right
132
     (Value  : Unsigned_64;
133
      Amount : Natural) return Unsigned_64;
134
 
135
   function Shift_Right_Arithmetic
136
     (Value  : Unsigned_64;
137
      Amount : Natural) return Unsigned_64;
138
 
139
   function Rotate_Left
140
     (Value  : Unsigned_64;
141
      Amount : Natural) return Unsigned_64;
142
 
143
   function Rotate_Right
144
     (Value  : Unsigned_64;
145
      Amount : Natural) return Unsigned_64;
146
 
147
   pragma Import (Intrinsic, Shift_Left);
148
   pragma Import (Intrinsic, Shift_Right);
149
   pragma Import (Intrinsic, Shift_Right_Arithmetic);
150
   pragma Import (Intrinsic, Rotate_Left);
151
   pragma Import (Intrinsic, Rotate_Right);
152
 
153
   --  IEEE Floating point types. Note that the form of these definitions
154
   --  ensures that the work on VMS, even if the standard library is compiled
155
   --  using a Float_Representation pragma for Vax_Float.
156
 
157
   pragma Warnings (Off);
158
   --  Turn off warnings for targets not providing IEEE floating-point types
159
 
160
   type IEEE_Float_32 is digits 6;
161
   pragma Float_Representation (IEEE_Float, IEEE_Float_32);
162
 
163
   type IEEE_Float_64 is digits 15;
164
   pragma Float_Representation (IEEE_Float, IEEE_Float_64);
165
 
166
   --  If there is an IEEE extended float available on the machine, we assume
167
   --  that it is available as Long_Long_Float.
168
 
169
   --  Note: it is harmless, and explicitly permitted, to include additional
170
   --  types in interfaces, so it is not wrong to have IEEE_Extended_Float
171
   --  defined even if the extended format is not available.
172
 
173
   type IEEE_Extended_Float is new Long_Long_Float;
174
 
175
end Interfaces;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.