diff options
author | tanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2011-03-31 02:41:29 +0000 |
---|---|---|
committer | tanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2011-03-31 02:41:29 +0000 |
commit | 96601f2cd5d12b4618ecd830e8a155cad18e15dc (patch) | |
tree | 1da9d04e7f7f4b15cafb36e61e91525bb9fa96b4 /Types.h | |
parent | 623590de821184aafc3aa6d72b9fd24791884751 (diff) | |
download | src-96601f2cd5d12b4618ecd830e8a155cad18e15dc.tar.gz |
Add TwoBytes test (not on by default)
Remove hash list duplication from collision test so we don't use so much RAM
git-svn-id: http://smhasher.googlecode.com/svn/trunk@101 77a7d1d3-4c08-bdc2-d393-d5859734b01a
Diffstat (limited to 'Types.h')
-rw-r--r-- | Types.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -102,6 +102,12 @@ public: return *this;
}
+ Blob ( uint64_t a, uint64_t b )
+ {
+ uint64_t t[2] = {a,b};
+ set(&t,16);
+ }
+
void set ( const void * blob, int len )
{
const uint8_t * k = (const uint8_t*)blob;
|