Merge branch 'fix/php-memcached-531' into v1.x
[awesomized/libmemcached] / src / libhashkit / hsieh.cc
index 6fc4fbb47b235c12149a27b68fd5e791d0528281..def3d745f86f0d967ac8af53c4b5f75935ae5b6d 100644 (file)
@@ -1,6 +1,6 @@
 /*
     +--------------------------------------------------------------------+
-    | libmemcached - C/C++ Client Library for memcached                  |
+    | libmemcached-awesome - C/C++ Client Library for memcached          |
     +--------------------------------------------------------------------+
     | Redistribution and use in source and binary forms, with or without |
     | modification, are permitted under the terms of the BSD license.    |
@@ -9,10 +9,17 @@
     | the terms online at: https://opensource.org/licenses/BSD-3-Clause  |
     +--------------------------------------------------------------------+
     | Copyright (c) 2006-2014 Brian Aker   https://datadifferential.com/ |
-    | Copyright (c) 2020 Michael Wallner   <mike@php.net>                |
+    | Copyright (c) 2020-2021 Michael Wallner        https://awesome.co/ |
     +--------------------------------------------------------------------+
 */
 
+/* By Paul Hsieh (C) 2004, 2005.  Covered under the Paul Hsieh
+ * derivative license.
+ * See: http://www.azillionmonkeys.com/qed/weblicense.html for license
+ * details.
+ * http://www.azillionmonkeys.com/qed/hash.html
+*/
+
 #include "libhashkit/common.h"
 
 #undef get16bits
@@ -62,7 +69,8 @@ uint32_t hashkit_hsieh(const char *key, size_t key_length, void *) {
     hash += (unsigned char) (*key);
     hash ^= hash << 10;
     hash += hash >> 1;
-  default: break;
+  default:
+    break;
   }
 
   /* Force "avalanching" of final 127 bits */