Skip to content

Commit

Permalink
add prvhash
Browse files Browse the repository at this point in the history
See GH rurban#131.
Extremely slow, but extremely small and passes all tests.
  • Loading branch information
rurban committed Aug 13, 2020
1 parent 880ea49 commit 5859e77
Show file tree
Hide file tree
Showing 6 changed files with 1,592 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Hashes.h
Original file line number Diff line number Diff line change
Expand Up @@ -989,3 +989,11 @@ inline void aesnihash_test ( const void * key, int len, unsigned seed, void * ou
*(uint64_t *)out = result;
}
#endif

#include "prvhash42.h"
inline void prvhash_test ( const void * key, int len, unsigned seed, void * out )
{
uint8_t hash[8] = {0};
prvhash42 ((const uint8_t *)key, len, hash, 8, (uint64_t)seed, 0, 0);
memcpy (out, hash, 8);
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ SMhasher
| -------------------------------------- | | | | | |
| [tifuhash_64](doc/tifuhash_64.txt) | 35.60 | 1679.52 |1212.75 (15)| 276 | |
| [floppsyhash_64](doc/floppsyhash.txt) | 191.95 | 450.93 | 821.11 (152)| 623 | |
| [prvhash](doc/prvhash.txt) | 393.21 | 142.03 | 532.15 (125)| 157 | |
| [chaskey](doc/chaskey.txt) | 735.85 | 168.05 | 336.07 (4) |1609 | |
| [SipHash](doc/SipHash.txt) | 958.78 | 141.84 | 278.15 (3) |1071 | |
| [HalfSipHash](doc/HalfSipHash.txt) | 741.59 | 122.25 | 256.22 (20)| 700 | zeroes |
Expand Down
Loading

0 comments on commit 5859e77

Please sign in to comment.