libFirm
hashptr.h File Reference

Hash functions. More...

#include <stdlib.h>
#include "../begin.h"
#include "../end.h"

Go to the source code of this file.

Functions

static unsigned hash_data (const unsigned char *data, size_t bytes)
 Returns a hash value for a block of data.
static unsigned hash_str (const char *str)
 Returns a hash value for a string.
static unsigned hash_ptr (const void *ptr)
 Returns a hash value for a pointer.
static unsigned hash_combine (unsigned x, unsigned y)
 Combines 2 hash values.

Detailed Description

Hash functions.

Author
Michael Beck, Sebastian Hack

Definition in file hashptr.h.