2 hash - return the calc hash value
5 hash(x_1 [, x_2, x_3, ...])
10 return integer v, 0 <= v < 2^32
13 Returns a hash value for one or more values of arbitrary types.
15 The calc hash value is based on the core Fowler/Noll/Vo hash
16 known as FNV-1. The return value, however, cannot be used
17 as an FNV hash value because calc's internal function also
18 takes into account more abstract concepts such as data types.
22 http://www.isthe.com/chongo/tech/comp/fnv/
24 information about the Fowler/Noll/Vo (FNV) hash.
27 ; a = isqrt(2e1000); s = "xyz";
32 The number of arguments is not to exceed 1024.
40 ## Copyright (C) 1999-2007 Landon Curt Noll
42 ## Calc is open software; you can redistribute it and/or modify it under
43 ## the terms of the version 2.1 of the GNU Lesser General Public License
44 ## as published by the Free Software Foundation.
46 ## Calc is distributed in the hope that it will be useful, but WITHOUT
47 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
48 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
49 ## Public License for more details.
51 ## A copy of version 2.1 of the GNU Lesser General Public License is
52 ## distributed with calc under the filename COPYING-LGPL. You should have
53 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
54 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
56 ## @(#) $Revision: 30.2 $
57 ## @(#) $Id: hash,v 30.2 2007/07/05 17:37:41 chongo Exp $
58 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/hash,v $
60 ## Under source code control: 1996/03/12 23:10:01
61 ## File existed as early as: 1996
63 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
64 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/