Logo
Macros | Functions
hash.hh File Reference
#include <stddef.h>
#include <stdint.h>
#include <string>
Include dependency graph for hash.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HASHLENGTH   64
 
#define get16bits(d)
 

Functions

uint32_t h (const char *, size_t)
 
uint32_t hash_ruby (const char *data)
 
uint32_t h (std::string)
 

Macro Definition Documentation

◆ get16bits

#define get16bits (   d)
Value:
((((uint32_t)(((const uint8_t *)(d))[1])) << 8)\
+(uint32_t)(((const uint8_t *)(d))[0]) )

◆ HASHLENGTH

#define HASHLENGTH   64

Function Documentation

◆ h() [1/2]

uint32_t h ( const char *  data,
size_t  len 
)

◆ h() [2/2]

uint32_t h ( std::string  input)

◆ hash_ruby()

uint32_t hash_ruby ( const char *  data)