/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/hash.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-11-24 15:25:23 UTC
  • mfrom: (5.2.9 simple_type_system_SMap)
  • Revision ID: gustav.hartvigsson@gmail.com-20141124152523-jvcnlsu5t1i44tt8
* Merged with the SMap branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
*/
 
3
 
 
4
#ifndef __H_HASH__
 
5
#define __H_HASH__
 
6
 
 
7
#include "defs.h"
 
8
#include "utils"
 
9
 
 
10
BEGIN_DECLS
 
11
 
 
12
/** @file
 
13
 * A collection of hash functions.
 
14
 */
 
15
 
 
16
 
 
17
/**
 
18
 * this is the SDBM hash function from:
 
19
 * http://en.literateprograms.org/Hash_function_comparison_%28C,_sh%29
 
20
 */
 
21
hash_t sdbm_hash (const unsigned char *key);
 
22
 
 
23
 
 
24
/**
 
25
 * what hash function s_hash is defined to.
 
26
 */
 
27
#define s_hash(k) sdbm_hash(k)
 
28
 
 
29
 
 
30
END_DECLS
 
31
 
 
32
#endif