OSDN Git Service

Delete all lines containing "$Revision:".
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-scaval.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                          GNAT RUNTIME COMPONENTS                         --
4 --                                                                          --
5 --                  S Y S T E M . S C A L A R _ V A L U E S                 --
6 --                                 S p e c                                  --
7 --                                                                          --
8 --                                                                          --
9 --             Copyright (C) 2001 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,  59 Temple Place - Suite 330,  Boston, --
20 -- MA 02111-1307, 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 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 --  This package defines the constants used for initializing scalar values
35 --  when pragma Initialize_Scalars is used. The actual values are defined
36 --  in the binder generated file. This package contains the Ada names that
37 --  are used by the generated code, which are linked to the actual values
38 --  by the use of pragma Import.
39
40 package System.Scalar_Values is
41 pragma Pure (Scalar_Values);
42
43    type Byte1 is mod 2 **  8;
44    type Byte2 is mod 2 ** 16;
45    type Byte4 is mod 2 ** 32;
46    type Byte8 is mod 2 ** 64;
47
48    IS_Is1 : constant Byte1;           -- Initialize 1 byte signed value
49    IS_Is2 : constant Byte2;           -- Initialize 2 byte signed value
50    IS_Is4 : constant Byte4;           -- Initialize 4 byte signed value
51    IS_Is8 : constant Byte8;           -- Initialize 8 byte signed value
52    IS_Iu1 : constant Byte1;           -- Initialize 1 byte unsigned value
53    IS_Iu2 : constant Byte2;           -- Initialize 2 byte unsigned value
54    IS_Iu4 : constant Byte4;           -- Initialize 4 byte unsigned value
55    IS_Iu8 : constant Byte8;           -- Initialize 8 byte unsigned value
56    IS_Isf : constant Short_Float;     -- Initialize short float value
57    IS_Ifl : constant Float;           -- Initialize float value
58    IS_Ilf : constant Long_Float;      -- Initialize long float value
59    IS_Ill : constant Long_Long_Float; -- Initialize long long float value
60
61    pragma Import (Ada, IS_Is1, "__gnat_Is1");
62    pragma Import (Ada, IS_Is2, "__gnat_Is2");
63    pragma Import (Ada, IS_Is4, "__gnat_Is4");
64    pragma Import (Ada, IS_Is8, "__gnat_Is8");
65    pragma Import (Ada, IS_Iu1, "__gnat_Iu1");
66    pragma Import (Ada, IS_Iu2, "__gnat_Iu2");
67    pragma Import (Ada, IS_Iu4, "__gnat_Iu4");
68    pragma Import (Ada, IS_Iu8, "__gnat_Iu8");
69    pragma Import (Ada, IS_Isf, "__gnat_Isf");
70    pragma Import (Ada, IS_Ifl, "__gnat_Ifl");
71    pragma Import (Ada, IS_Ilf, "__gnat_Ilf");
72    pragma Import (Ada, IS_Ill, "__gnat_Ill");
73
74 end System.Scalar_Values;