DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Package Interfaces

Interfaces (RM B.2): integer types of each size, and the shift and rotate functions of the unsigned ones, which Verada defines for any amount: a shift by the size or more gives 0 (or, arithmetically, the sign in every bit), a rotation goes round modulo the size.

Integer_8

type Integer_8 is range -2 ** (8 - 1) .. 2 ** (8 - 1) - 1;

Integer_16

type Integer_16 is range -2 ** (16 - 1) .. 2 ** (16 - 1) - 1;

Integer_32

type Integer_32 is range -2 ** (32 - 1) .. 2 ** (32 - 1) - 1;

Integer_64

type Integer_64 is range -2 ** (64 - 1) .. 2 ** (64 - 1) - 1;

Unsigned_8

type Unsigned_8 is mod 2 ** 8;

Unsigned_16

type Unsigned_16 is mod 2 ** 16;

Unsigned_32

type Unsigned_32 is mod 2 ** 32;

Unsigned_64

type Unsigned_64 is mod 2 ** 64;

Shift_Left

function Shift_Left (Value : Unsigned_8; Amount : Natural) return Unsigned_8
  with Import, Convention => Intrinsic, Global => null;

Shift_Right

function Shift_Right (Value : Unsigned_8; Amount : Natural) return Unsigned_8
  with Import, Convention => Intrinsic, Global => null;

Shift_Right_Arithmetic

function Shift_Right_Arithmetic (Value : Unsigned_8; Amount : Natural) return Unsigned_8
  with Import, Convention => Intrinsic, Global => null;

Rotate_Left

function Rotate_Left (Value : Unsigned_8; Amount : Natural) return Unsigned_8
  with Import, Convention => Intrinsic, Global => null;

Rotate_Right

function Rotate_Right (Value : Unsigned_8; Amount : Natural) return Unsigned_8
  with Import, Convention => Intrinsic, Global => null;

Shift_Left

function Shift_Left (Value : Unsigned_16; Amount : Natural) return Unsigned_16
  with Import, Convention => Intrinsic, Global => null;

Shift_Right

function Shift_Right (Value : Unsigned_16; Amount : Natural) return Unsigned_16
  with Import, Convention => Intrinsic, Global => null;

Shift_Right_Arithmetic

function Shift_Right_Arithmetic (Value : Unsigned_16; Amount : Natural) return Unsigned_16
  with Import, Convention => Intrinsic, Global => null;

Rotate_Left

function Rotate_Left (Value : Unsigned_16; Amount : Natural) return Unsigned_16
  with Import, Convention => Intrinsic, Global => null;

Rotate_Right

function Rotate_Right (Value : Unsigned_16; Amount : Natural) return Unsigned_16
  with Import, Convention => Intrinsic, Global => null;

Shift_Left

function Shift_Left (Value : Unsigned_32; Amount : Natural) return Unsigned_32
  with Import, Convention => Intrinsic, Global => null;

Shift_Right

function Shift_Right (Value : Unsigned_32; Amount : Natural) return Unsigned_32
  with Import, Convention => Intrinsic, Global => null;

Shift_Right_Arithmetic

function Shift_Right_Arithmetic (Value : Unsigned_32; Amount : Natural) return Unsigned_32
  with Import, Convention => Intrinsic, Global => null;

Rotate_Left

function Rotate_Left (Value : Unsigned_32; Amount : Natural) return Unsigned_32
  with Import, Convention => Intrinsic, Global => null;

Rotate_Right

function Rotate_Right (Value : Unsigned_32; Amount : Natural) return Unsigned_32
  with Import, Convention => Intrinsic, Global => null;

Shift_Left

function Shift_Left (Value : Unsigned_64; Amount : Natural) return Unsigned_64
  with Import, Convention => Intrinsic, Global => null;

Shift_Right

function Shift_Right (Value : Unsigned_64; Amount : Natural) return Unsigned_64
  with Import, Convention => Intrinsic, Global => null;

Shift_Right_Arithmetic

function Shift_Right_Arithmetic (Value : Unsigned_64; Amount : Natural) return Unsigned_64
  with Import, Convention => Intrinsic, Global => null;

Rotate_Left

function Rotate_Left (Value : Unsigned_64; Amount : Natural) return Unsigned_64
  with Import, Convention => Intrinsic, Global => null;

Rotate_Right

function Rotate_Right (Value : Unsigned_64; Amount : Natural) return Unsigned_64
  with Import, Convention => Intrinsic, Global => null;