X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fada%2Fa-stzhas.adb;h=a48fd0346a9c098be7f14876612a4ccb5938aa53;hb=dd9d9ac28b56faa0c480877b29e1a74fb856214f;hp=1a72e0a554c7551901c3028a7cb7b64c52b758e7;hpb=6bc9506f51c864af73250f5e6c99da261bd98b11;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/ada/a-stzhas.adb b/gcc/ada/a-stzhas.adb index 1a72e0a554c..a48fd0346a9 100644 --- a/gcc/ada/a-stzhas.adb +++ b/gcc/ada/a-stzhas.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2004-2009, Free Software Foundation, Inc. -- +-- Copyright (C) 2009, 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- -- @@ -24,28 +24,13 @@ -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- . -- -- -- --- This unit was originally developed by Matthew J Heaney. -- +-- GNAT was originally developed by the GNAT team at New York University. -- +-- Extensive contributions were provided by Ada Core Technologies Inc. -- +-- -- ------------------------------------------------------------------------------ --- Note: source of this algorithm: GNAT.HTable.Hash (g-htable.adb) - -function Ada.Strings.Wide_Wide_Hash - (Key : Wide_Wide_String) return Containers.Hash_Type -is - use Ada.Containers; - - function Rotate_Left - (Value : Hash_Type; - Amount : Natural) return Hash_Type; - pragma Import (Intrinsic, Rotate_Left); - - Tmp : Hash_Type; - -begin - Tmp := 0; - for J in Key'Range loop - Tmp := Rotate_Left (Tmp, 3) + Wide_Wide_Character'Pos (Key (J)); - end loop; +-- This package does not require a body, since it is an instantiation. We +-- provide a dummy file containing a No_Body pragma so that previous versions +-- of the body (which did exist) will not interfere. - return Tmp; -end Ada.Strings.Wide_Wide_Hash; +pragma No_Body;