X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FHash.cc;h=eb024ad85c7675176b6894ad323cc12457a2f6d7;hp=457c353d277183bd190b7005f94087110b47db33;hb=5fa5f117f28922a7e539a432367960c1a61f837d;hpb=a5f0d391406a68275b41448fc3f49e8d8396c497 diff --git a/src/Moof/Hash.cc b/src/Moof/Hash.cc index 457c353..eb024ad 100644 --- a/src/Moof/Hash.cc +++ b/src/Moof/Hash.cc @@ -32,8 +32,10 @@ namespace Mf { -//----------------------------------------------------------------------------- // MurmurHash2, by Austin Appleby +// http://murmurhash.googlepages.com/ + +// This function is in the public domain. // Note - This code makes a few assumptions about how your machine behaves - @@ -46,7 +48,7 @@ namespace Mf { // 2. It will not produce the same results on little-endian and big-endian // machines. -unsigned int MurmurHash2_(const void* key, int len, unsigned int seed) +unsigned getHash::operator()(const void* key, int len, unsigned int seed) const { // 'm' and 'r' are mixing constants generated offline. // They're not really 'magic', they just happen to work well.