-- --
-- B o d y --
-- --
--- Copyright (C) 1996-2002 Free Software Foundation, Inc. --
+-- Copyright (C) 1996-2004 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- --
Bitc : constant Natural := Llen mod 8;
begin
- if Llen /= Rlen then
- return False;
-
- elsif LeftB (1 .. BLen) /= RightB (1 .. BLen) then
+ if LeftB (1 .. BLen) /= RightB (1 .. BLen) then
return False;
elsif Bitc /= 0 then
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-1999, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2004, 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- --
procedure Bit_And
(Left : System.Address;
Llen : Natural;
- Right : Address;
+ Right : System.Address;
Rlen : Natural;
Result : System.Address);
-- Bitwise "and" of given bit string with result being placed in Result.
- -- The or operation is allowed to destroy unused bits in the last byte,
+ -- The and operation is allowed to destroy unused bits in the last byte,
-- i.e. to leave them set in an undefined manner. Note that Left, Right
-- and Result always have the same length in bits (Len).
procedure Bit_Or
(Left : System.Address;
Llen : Natural;
- Right : Address;
+ Right : System.Address;
Rlen : Natural;
Result : System.Address);
-- Bitwise "or" of given bit string with result being placed in Result.
procedure Bit_Xor
(Left : System.Address;
Llen : Natural;
- Right : Address;
+ Right : System.Address;
Rlen : Natural;
Result : System.Address);
-- Bitwise "xor" of given bit string with result being placed in Result.
- -- The or operation is allowed to destroy unused bits in the last byte,
+ -- The xor operation is allowed to destroy unused bits in the last byte,
-- i.e. to leave them set in an undefined manner. Note that Left, Right
-- and Result always have the same length in bits (Len).
Right : System.Address;
Left_Len : Natural;
Right_Len : Natural) return Integer;
- -- Same functionality as Compare_Array_U8 but always proceeds by
+ -- Same functionality as Compare_Array_S8 but always proceeds by
-- bytes. Used when the caller knows that the operands are unaligned,
-- or short enough that it makes no sense to go by words.