~mordred/libmemcached/fix-weird-link

« back to all changes in this revision

Viewing changes to libhashkit/algorithm.h

  • Committer: Brian Aker
  • Date: 2009-12-17 17:28:30 UTC
  • Revision ID: brian@gir.tangent.org-20091217172830-h298d0m4x2wxmqlo
Adding back libhashkit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* HashKit
 
2
 * Copyright (C) 2009 Brian Aker
 
3
 * All rights reserved.
 
4
 *
 
5
 * Use and distribution licensed under the BSD license.  See
 
6
 * the COPYING file in the parent directory for full text.
 
7
 */
 
8
 
 
9
/**
 
10
 * @file
 
11
 * @brief HashKit Header
 
12
 */
 
13
 
 
14
#ifndef HASHKIT_ALGORITHM_H
 
15
#define HASHKIT_ALGORITHM_H
 
16
 
 
17
#ifdef __cplusplus
 
18
extern "C" {
 
19
#endif
 
20
 
 
21
HASHKIT_API
 
22
uint32_t hashkit_default(const char *key, size_t key_length);
 
23
HASHKIT_API
 
24
uint32_t hashkit_fnv1_64(const char *key, size_t key_length);
 
25
HASHKIT_API
 
26
uint32_t hashkit_fnv1a_64(const char *key, size_t key_length);
 
27
HASHKIT_API
 
28
uint32_t hashkit_fnv1_32(const char *key, size_t key_length);
 
29
HASHKIT_API
 
30
uint32_t hashkit_fnv1a_32(const char *key, size_t key_length);
 
31
HASHKIT_API
 
32
uint32_t hashkit_crc32(const char *key, size_t key_length);
 
33
HASHKIT_API
 
34
#ifdef HAVE_HSIEH_HASH
 
35
HASHKIT_API
 
36
uint32_t hashkit_hsieh(const char *key, size_t key_length);
 
37
#endif
 
38
HASHKIT_API
 
39
uint32_t hashkit_murmur(const char *key, size_t key_length);
 
40
HASHKIT_API
 
41
uint32_t hashkit_jenkins(const char *key, size_t key_length);
 
42
HASHKIT_API
 
43
uint32_t hashkit_md5(const char *key, size_t key_length);
 
44
 
 
45
#ifdef __cplusplus
 
46
}
 
47
#endif
 
48
 
 
49
#endif /* HASHKIT_ALGORITHM_H */