Browse Source

up

Update hash_table8.hpp

Update hash_table8.hpp
blueloveTH 3 years ago
parent
commit
d178e9027c
2 changed files with 4 additions and 2 deletions
  1. 3 1
      README.md
  2. 1 1
      src/hash_table8.hpp

+ 3 - 1
README.md

@@ -149,4 +149,6 @@ You can download `artifact.zip` from [Github Release](https://github.com/bluelov
 
 ## License
 
-MIT License
+PocketPy is licensed under the [MIT License](http://opensource.org/licenses/MIT).
+
+PocketPy uses [emhash](https://github.com/ktprime/emhash)(MIT License) to implement Python's internal `__dict__` object. [emhash](https://github.com/ktprime/emhash) is 40% faster than `std::unordered_map`.

+ 1 - 1
src/hash_table8.hpp

@@ -1660,7 +1660,7 @@ one-way search strategy.
 
 #if EMH_WYHASH_HASH
     //#define WYHASH_CONDOM 1
-    inline uint64_t wymix(uint64_t A, uint64_t B)
+    inline static uint64_t wymix(uint64_t A, uint64_t B)
     {
 #if defined(__SIZEOF_INT128__)
         __uint128_t r = A; r *= B;