Add attribution for lookup3.c
authorRichard Lander <rlander@microsoft.com>
Tue, 20 Oct 2015 04:08:32 +0000 (21:08 -0700)
committerRichard Lander <rlander@microsoft.com>
Wed, 21 Oct 2015 05:03:18 +0000 (22:03 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/1349986987bdd23411bfaebb9f68d63eca6a8b39

src/coreclr/src/inc/utilcode.h

index e832441..981f900 100644 (file)
@@ -3208,8 +3208,16 @@ inline DWORD HashThreeToOne(DWORD a, DWORD b, DWORD c)
 {
     LIMITED_METHOD_DAC_CONTRACT;
 
-    // Current implementation taken from lookup3.c, by Bob Jenkins, May 2006
-    
+    /*
+    lookup3.c, by Bob Jenkins, May 2006, Public Domain.
+
+    These are functions for producing 32-bit hashes for hash table lookup.
+    hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final() 
+    are externally useful functions.  Routines to test the hash are included 
+    if SELF_TEST is defined.  You can use this free for any purpose.  It's in
+    the public domain.  It has no warranty.
+    */
+
     #define rot32(x,k) (((x)<<(k)) | ((x)>>(32-(k))))
     c ^= b; c -= rot32(b,14);
     a ^= c; a -= rot32(c,11);