FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Hasher.H File Reference

Misc. hashing functions, mostly from Bob Jenkins. More...


Detailed Description

Misc. hashing functions, mostly from Bob Jenkins.

InNamespace Foam

The Jenkins hashing function(s) is similar in speed to Paul Hsieh's SuperFast hash, but is public domain, supports incremental hashing and has been reported to have better characteristics. It is also what postgresql seems to be using.

See also:
http://burtleburtle.net/bob/c/lookup3.c and HasherInt.H for a specialized version
Source files

Definition in file Hasher.H.

#include <cstddef>
Include dependency graph for Hasher.H:

Go to the source code of this file.

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Functions

unsigned  Hasher (const void *data, size_t len, unsigned seed=0)
 Bob Jenkins's 96-bit mixer hashing function (lookup3)