1238106Sdes------------------------------------------------------------------------------
2238106Sdes--                                                                          --
3238106Sdes--                    GNAT RUN-TIME LIBRARY COMPONENTS                      --
4238106Sdes--                                                                          --
5238106Sdes--      S Y S T E M . C O M P A R E _ A R R A Y _ U N S I G N E D _ 3 2     --
6238106Sdes--                                                                          --
7238106Sdes--                                 S p e c                                  --
8238106Sdes--                                                                          --
9238106Sdes--          Copyright (C) 2002-2014, Free Software Foundation, Inc.         --
10238106Sdes--                                                                          --
11238106Sdes-- GNAT is free software;  you can  redistribute it  and/or modify it under --
12238106Sdes-- terms of the  GNU General Public License as published  by the Free Soft- --
13238106Sdes-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14238106Sdes-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15238106Sdes-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16238106Sdes-- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17238106Sdes--                                                                          --
18238106Sdes-- As a special exception under Section 7 of GPL version 3, you are granted --
19238106Sdes-- additional permissions described in the GCC Runtime Library Exception,   --
20238106Sdes-- version 3.1, as published by the Free Software Foundation.               --
21238106Sdes--                                                                          --
22238106Sdes-- You should have received a copy of the GNU General Public License and    --
23238106Sdes-- a copy of the GCC Runtime Library Exception along with this program;     --
24266114Sdes-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25266114Sdes-- <http://www.gnu.org/licenses/>.                                          --
26266114Sdes--                                                                          --
27266114Sdes-- GNAT was originally developed  by the GNAT team at  New York University. --
28266114Sdes-- Extensive contributions were provided by Ada Core Technologies Inc.      --
29266114Sdes--                                                                          --
30266114Sdes------------------------------------------------------------------------------
31266114Sdes
32266114Sdes--  This package contains functions for runtime comparisons on arrays whose
33266114Sdes--  elements are 32-bit discrete type values to be treated as unsigned.
34238106Sdes
35238106Sdespackage System.Compare_Array_Unsigned_32 is
36238106Sdes
37238106Sdes   --  Note: although the functions in this package are in a sense Pure, the
38238106Sdes   --  package cannot be declared as Pure, since the arguments are addresses,
39238106Sdes   --  not the data, and the result is not pure wrt the address values.
40238106Sdes
41238106Sdes   function Compare_Array_U32
42238106Sdes     (Left      : System.Address;
43238106Sdes      Right     : System.Address;
44238106Sdes      Left_Len  : Natural;
45238106Sdes      Right_Len : Natural) return Integer;
46368129Scy   --  Compare the array starting at address Left of length Left_Len
47368129Scy   --  with the array starting at address Right of length Right_Len.
48368129Scy   --  The comparison is in the normal Ada semantic sense of array
49238106Sdes   --  comparison. The result is -1,0,+1 for Left<Right, Left=Right,
50238106Sdes   --  Left>Right respectively.
51238106Sdes
52266114Sdesend System.Compare_Array_Unsigned_32;
53356345Scy