1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- T T Y P E F --
-- --
-- S p e c --
-- --
-- $Revision: 1.16 $ --
-- --
-- Copyright (C) 1992-1997 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
-- --
------------------------------------------------------------------------------
-- This module contains values for the predefined floating-point attributes.
-- All references to these attribute values in a program being compiled must
-- use the values in this package, not the values returned by referencing
-- the corresponding attributes (since that would give host machine values).
-- The codes for the six floating-point formats supported are:
-- IEEES - IEEE Short Float
-- IEEEL - IEEE Long Float
-- IEEEX - IEEE X86 Extended Float
-- VAXFF - VAX F Float
-- VAXDF - VAX D Float
-- VAXGF - VAX G Float
package Ttypef is
------------------------------
-- Boolean Attribute Values --
------------------------------
IEEES_Denorm : constant Boolean := True;
IEEEL_Denorm : constant Boolean := True;
IEEEX_Denorm : constant Boolean := True;
VAXFF_Denorm : constant Boolean := False;
VAXDF_Denorm : constant Boolean := False;
VAXGF_Denorm : constant Boolean := False;
IEEES_Machine_Overflows : constant Boolean := False;
IEEEL_Machine_Overflows : constant Boolean := False;
IEEEX_Machine_Overflows : constant Boolean := False;
VAXFF_Machine_Overflows : constant Boolean := False;
VAXDF_Machine_Overflows : constant Boolean := False;
VAXGF_Machine_Overflows : constant Boolean := False;
IEEES_Machine_Rounds : constant Boolean := True;
IEEEL_Machine_Rounds : constant Boolean := True;
IEEEX_Machine_Rounds : constant Boolean := True;
VAXFF_Machine_Rounds : constant Boolean := True;
VAXDF_Machine_Rounds : constant Boolean := True;
VAXGF_Machine_Rounds : constant Boolean := True;
IEEES_Signed_Zeros : constant Boolean := True;
IEEEL_Signed_Zeros : constant Boolean := True;
IEEEX_Signed_Zeros : constant Boolean := True;
VAXFF_Signed_Zeros : constant Boolean := False;
VAXDF_Signed_Zeros : constant Boolean := False;
VAXGF_Signed_Zeros : constant Boolean := False;
----------------------------------
-- Universal Integer Attributes --
----------------------------------
IEEES_Digits : constant := 6;
IEEEL_Digits : constant := 15;
IEEEX_Digits : constant := 18;
VAXFF_Digits : constant := 6;
VAXDF_Digits : constant := 9;
VAXGF_Digits : constant := 15;
IEEES_Emax : constant := 84;
IEEEL_Emax : constant := 200;
IEEEX_Emax : constant := 244;
VAXFF_Emax : constant := 84;
VAXDF_Emax : constant := 124;
VAXGF_Emax : constant := 204;
IEEES_Machine_Emax : constant := 128;
IEEEL_Machine_Emax : constant := 1024;
IEEEX_Machine_Emax : constant := 16384;
VAXFF_Machine_Emax : constant := 127;
VAXDF_Machine_Emax : constant := 127;
VAXGF_Machine_Emax : constant := 1023;
IEEES_Machine_Emin : constant := -125;
IEEEL_Machine_Emin : constant := -1021;
IEEEX_Machine_Emin : constant := -16381;
VAXFF_Machine_Emin : constant := -127;
VAXDF_Machine_Emin : constant := -127;
VAXGF_Machine_Emin : constant := -1023;
IEEES_Machine_Mantissa : constant := 24;
IEEEL_Machine_Mantissa : constant := 53;
IEEEX_Machine_Mantissa : constant := 64;
VAXFF_Machine_Mantissa : constant := 24;
VAXDF_Machine_Mantissa : constant := 56;
VAXGF_Machine_Mantissa : constant := 53;
IEEES_Mantissa : constant := 21;
IEEEL_Mantissa : constant := 51;
IEEEX_Mantissa : constant := 61;
VAXFF_Mantissa : constant := 24;
VAXDF_Mantissa : constant := 56;
VAXGF_Mantissa : constant := 53;
IEEES_Model_Emin : constant := -125;
IEEEL_Model_Emin : constant := -1021;
IEEEX_Model_Emin : constant := -16381;
VAXFF_Model_Emin : constant := -127;
VAXDF_Model_Emin : constant := -127;
VAXGF_Model_Emin : constant := -1023;
IEEES_Model_Mantissa : constant := 24;
IEEEL_Model_Mantissa : constant := 53;
IEEEX_Model_Mantissa : constant := 64;
VAXFF_Model_Mantissa : constant := 24;
VAXDF_Model_Mantissa : constant := 56;
VAXGF_Model_Mantissa : constant := 53;
IEEES_Safe_Emax : constant := 128;
IEEEL_Safe_Emax : constant := 1024;
IEEEX_Safe_Emax : constant := 16384;
VAXFF_Safe_Emax : constant := 127;
VAXDF_Safe_Emax : constant := 127;
VAXGF_Safe_Emax : constant := 1023;
-------------------------------
-- Universal Real Attributes --
-------------------------------
IEEES_Epsilon : constant := 2#1.0#E-20;
IEEEL_Epsilon : constant := 2#1.0#E-49;
IEEEX_Epsilon : constant := 2#1.0#E-60;
VAXFF_Epsilon : constant := 16#0.1000_000#E-4;
VAXDF_Epsilon : constant := 16#0.4000_0000_0000_000#E-7;
VAXGF_Epsilon : constant := 16#0.4000_0000_0000_00#E-12;
IEEES_Large : constant := 16#0.FFFF_F8#E+21;
IEEEL_Large : constant := 16#0.FFFF_FFFF_FFFF_C#E+50;
IEEEX_Large : constant := 16#0.FFFF_FFFF_FFFF_FFF8#E+61;
VAXFF_Large : constant := 16#0.FFFF_F80#E+21;
VAXDF_Large : constant := 16#0.FFFF_FFFE_0000_000#E+31;
VAXGF_Large : constant := 16#0.FFFF_FFFF_FFFF_E0#E-51;
IEEES_Model_Epsilon : constant := 2#1.0#E-23;
IEEEL_Model_Epsilon : constant := 2#1.0#E-52;
IEEEX_Model_Epsilon : constant := 2#1.0#E-63;
VAXFF_Model_Epsilon : constant := 16#0.1000_000#E-4;
VAXDF_Model_Epsilon : constant := 16#0.4000_0000_0000_000#E-7;
VAXGF_Model_Epsilon : constant := 16#0.4000_0000_0000_00#E-12;
IEEES_Model_Small : constant := 2#1.0#E-126;
IEEEL_Model_Small : constant := 2#1.0#E-1022;
IEEEX_Model_Small : constant := 2#1.0#E-16381;
VAXFF_Model_Small : constant := 16#0.8000_000#E-21;
VAXDF_Model_Small : constant := 16#0.8000_0000_0000_000#E-31;
VAXGF_Model_Small : constant := 16#0.8000_0000_0000_00#E-51;
IEEES_Safe_First : constant := -16#0.FFFF_FF#E+32;
IEEEL_Safe_First : constant := -16#0.FFFF_FFFF_FFFF_F8#E+256;
IEEEX_Safe_First : constant := -16#0.FFFF_FFFF_FFFF_FFFF#E+4096;
VAXFF_Safe_First : constant := -16#0.7FFF_FF8#E+32;
VAXDF_Safe_First : constant := -16#0.7FFF_FFFF_FFFF_FF8#E-38;
VAXGF_Safe_First : constant := -16#0.7FFF_FFFF_FFFF_FC#E-256;
IEEES_Safe_Large : constant := 16#0.FFFF_FF#E+32;
IEEEL_Safe_Large : constant := 16#0.FFFF_FFFF_FFFF_F8#E+256;
IEEEX_Safe_Large : constant := 16#0.FFFF_FFFF_FFFF_FFFF#E+4096;
VAXFF_Safe_Large : constant := 16#0.7FFF_FC0#E+32;
VAXDF_Safe_Large : constant := 16#0.7FFF_FFFF_0000_000#E+32;
VAXGF_Safe_Large : constant := 16#0.7FFF_FFFF_FFFF_F0#E+256;
IEEES_Safe_Last : constant := 16#0.FFFF_FF#E+32;
IEEEL_Safe_Last : constant := 16#0.FFFF_FFFF_FFFF_F8#E+256;
IEEEX_Safe_Last : constant := 16#0.FFFF_FFFF_FFFF_FFFF#E+4096;
VAXFF_Safe_Last : constant := 16#0.7FFF_FF8#E+32;
VAXDF_Safe_Last : constant := 16#0.7FFF_FFFF_FFFF_FC0#E+32;
VAXGF_Safe_Last : constant := 16#0.7FFF_FFFF_FFFF_FC#E+256;
IEEES_Safe_Small : constant := 2#1.0#E-126;
IEEEL_Safe_Small : constant := 2#1.0#E-1022;
IEEEX_Safe_Small : constant := 2#1.0#E-16381;
VAXFF_Safe_Small : constant := 16#0.1000_000#E-31;
VAXDF_Safe_Small : constant := 16#0.1000_0000_0000_000#E-31;
VAXGF_Safe_Small : constant := 16#0.1000_0000_0000_00#E-255;
----------------------
-- Typed Attributes --
----------------------
-- The attributes First and Last are typed attributes in Ada, and yield
-- values of the appropriate float type. However we still describe them
-- as universal real values in this file, since we are talking about the
-- target floating-point types, not the host floating-point types.
IEEES_First : constant := -16#0.FFFF_FF#E+32;
IEEEL_First : constant := -16#0.FFFF_FFFF_FFFF_F8#E+256;
IEEEX_First : constant := -16#0.FFFF_FFFF_FFFF_FFFF#E+4096;
VAXFF_First : constant := -16#0.7FFF_FF8#E+32;
VAXDF_First : constant := -16#0.7FFF_FFFF_FFFF_FF8#E+32;
VAXGF_First : constant := -16#0.7FFF_FFFF_FFFF_FC#E+256;
IEEES_Last : constant := 16#0.FFFF_FF#E+32;
IEEEL_Last : constant := 16#0.FFFF_FFFF_FFFF_F8#E+256;
IEEEX_Last : constant := 16#0.FFFF_FFFF_FFFF_FFFF#E+4096;
VAXFF_Last : constant := 16#0.7FFF_FF8#E+32;
VAXDF_Last : constant := 16#0.7FFF_FFFF_FFFF_FC0#E+32;
VAXGF_Last : constant := 16#0.7FFF_FFFF_FFFF_FC#E+256;
end Ttypef;
|