summaryrefslogtreecommitdiff
path: root/Types.h
diff options
context:
space:
mode:
authortanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a>2011-03-31 02:41:29 +0000
committertanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a>2011-03-31 02:41:29 +0000
commit96601f2cd5d12b4618ecd830e8a155cad18e15dc (patch)
tree1da9d04e7f7f4b15cafb36e61e91525bb9fa96b4 /Types.h
parent623590de821184aafc3aa6d72b9fd24791884751 (diff)
downloadsrc-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Types.h b/Types.h
index 1abb352..ddb464b 100644
--- a/Types.h
+++ b/Types.h
@@ -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;