hcl/lib/h2.ads

31 lines
1.1 KiB
Ada
Raw Normal View History

2014-01-14 14:22:06 +00:00
with System;
2013-12-10 16:14:06 +00:00
with System.Storage_Pools;
package H2 is
2014-06-17 15:23:35 +00:00
--pragma Preelaborate (H2);
2021-08-21 14:31:39 +00:00
System_Byte_Bits: constant := System.Storage_Unit;
2014-01-14 14:22:06 +00:00
System_Word_Bits: constant := System.Word_Size;
2021-08-21 14:31:39 +00:00
System_Word_Bytes: constant := System_Word_Bits / System_Byte_Bits;
2014-01-14 14:22:06 +00:00
2021-08-21 14:31:39 +00:00
type System_Byte is mod 2 ** System_Byte_Bits;
for System_Byte'Size use System_Byte_Bits;
2014-01-14 14:22:06 +00:00
type System_Word is mod 2 ** System_Word_Bits;
2021-08-21 14:31:39 +00:00
for System_Word'Size use System_Word_Bits;
2014-01-14 14:22:06 +00:00
type System_Signed_Word is range -(2 ** (System_Word_Bits - 1)) ..
+(2 ** (System_Word_Bits - 1)) - 1;
2021-08-21 14:31:39 +00:00
for System_Signed_Word'Size use System_Word_Bits;
2014-01-14 14:22:06 +00:00
2021-08-21 14:31:39 +00:00
--type System_Size is new System_Word range 0 .. (2 ** System_Word_Bits) - 1;
subtype System_Size is System_Word range 0 .. (2 ** System_Word_Bits) - 1;
subtype System_Length is System_Size;
2014-01-14 14:22:06 +00:00
subtype System_Index is System_Size range 1 .. System_Size'Last;
2021-08-21 14:31:39 +00:00
type Storage_Pool_Pointer is access all System.Storage_Pools.Root_Storage_Pool'Class;
2013-12-10 16:14:06 +00:00
2014-06-17 15:23:35 +00:00
type System_Byte_Array is array(System_Index range<>) of System_Byte;
2014-06-21 16:31:49 +00:00
--package Chpos renames H2.Ascii.Code;
2013-12-10 16:14:06 +00:00
end H2;