X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fhash.cc;fp=src%2FMoof%2FHashTools.cc;h=dbbc9befae9b337a352ab65591b84bd81ba69d13;hp=9bcefe3c071489303ba5df4d8c6cbf3fa4d6b01d;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hpb=299af4f2047e767e5d79501c26444473bda64c64 diff --git a/src/Moof/HashTools.cc b/src/moof/hash.cc similarity index 91% rename from src/Moof/HashTools.cc rename to src/moof/hash.cc index 9bcefe3..dbbc9be 100644 --- a/src/Moof/HashTools.cc +++ b/src/moof/hash.cc @@ -9,10 +9,10 @@ * **************************************************************************/ -#include "HashTools.hh" +#include "hash.hh" -namespace Mf { +namespace moof { // MurmurHash2, by Austin Appleby @@ -31,8 +31,8 @@ namespace Mf { // 2. It will not produce the same results on little-endian and big-endian // machines. -unsigned HashFunction::operator()(const void* key, int len, - unsigned int seed) const +unsigned hash_function::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. @@ -84,5 +84,5 @@ unsigned HashFunction::operator()(const void* key, int len, } -} // namespace Mf +} // namespace moof