1 ------------------------------------------------------------------------------
3 -- GNAT RUNTIME COMPONENTS --
5 -- S Y S T E M . S C A L A R _ V A L U E S --
10 -- Copyright (C) 2001 Free Software Foundation, Inc. --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
23 -- As a special exception, if other files instantiate generics from this --
24 -- unit, or you link this unit with other files to produce an executable, --
25 -- this unit does not by itself cause the resulting executable to be --
26 -- covered by the GNU General Public License. This exception does not --
27 -- however invalidate any other reasons why the executable file might be --
28 -- covered by the GNU Public License. --
30 -- GNAT was originally developed by the GNAT team at New York University. --
31 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
33 ------------------------------------------------------------------------------
35 -- This package defines the constants used for initializing scalar values
36 -- when pragma Initialize_Scalars is used. The actual values are defined
37 -- in the binder generated file. This package contains the Ada names that
38 -- are used by the generated code, which are linked to the actual values
39 -- by the use of pragma Import.
41 package System
.Scalar_Values
is
42 pragma Pure
(Scalar_Values
);
44 type Byte1
is mod 2 ** 8;
45 type Byte2
is mod 2 ** 16;
46 type Byte4
is mod 2 ** 32;
47 type Byte8
is mod 2 ** 64;
49 IS_Is1
: constant Byte1
; -- Initialize 1 byte signed value
50 IS_Is2
: constant Byte2
; -- Initialize 2 byte signed value
51 IS_Is4
: constant Byte4
; -- Initialize 4 byte signed value
52 IS_Is8
: constant Byte8
; -- Initialize 8 byte signed value
53 IS_Iu1
: constant Byte1
; -- Initialize 1 byte unsigned value
54 IS_Iu2
: constant Byte2
; -- Initialize 2 byte unsigned value
55 IS_Iu4
: constant Byte4
; -- Initialize 4 byte unsigned value
56 IS_Iu8
: constant Byte8
; -- Initialize 8 byte unsigned value
57 IS_Isf
: constant Short_Float; -- Initialize short float value
58 IS_Ifl
: constant Float; -- Initialize float value
59 IS_Ilf
: constant Long_Float; -- Initialize long float value
60 IS_Ill
: constant Long_Long_Float; -- Initialize long long float value
62 pragma Import
(Ada
, IS_Is1
, "__gnat_Is1");
63 pragma Import
(Ada
, IS_Is2
, "__gnat_Is2");
64 pragma Import
(Ada
, IS_Is4
, "__gnat_Is4");
65 pragma Import
(Ada
, IS_Is8
, "__gnat_Is8");
66 pragma Import
(Ada
, IS_Iu1
, "__gnat_Iu1");
67 pragma Import
(Ada
, IS_Iu2
, "__gnat_Iu2");
68 pragma Import
(Ada
, IS_Iu4
, "__gnat_Iu4");
69 pragma Import
(Ada
, IS_Iu8
, "__gnat_Iu8");
70 pragma Import
(Ada
, IS_Isf
, "__gnat_Isf");
71 pragma Import
(Ada
, IS_Ifl
, "__gnat_Ifl");
72 pragma Import
(Ada
, IS_Ilf
, "__gnat_Ilf");
73 pragma Import
(Ada
, IS_Ill
, "__gnat_Ill");
75 end System
.Scalar_Values
;