mongoutils Namespace Reference

Namespaces

namespace  html
namespace  str

Functions

int checksum (const char *x, int size)
unsigned hash (unsigned u)
unsigned hashPointer (void *v)

Function Documentation

int mongoutils::checksum ( const char *  x,
int  size 
) [inline]

this is a silly temporary implementation

Definition at line 25 of file checksum.h.

unsigned mongoutils::hash ( unsigned  u  )  [inline]

Definition at line 36 of file hash.h.

unsigned mongoutils::hashPointer ( void *  v  )  [inline]
Returns:
hash of a pointer to an unsigned. so you get a 32 bit hash out, regardless of whether pointers are 32 or 64 bit on the particular platform.

is there a faster way to impl this that hashes just as well?

Definition at line 27 of file hash.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:59 2013