ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libhashkit-1.0 / algorithm.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 HASHKIT_API
23 uint32_t libhashkit_one_at_a_time(const char *key, size_t key_length);
24
25 HASHKIT_API
26 uint32_t libhashkit_fnv1_64(const char *key, size_t key_length);
27
28 HASHKIT_API
29 uint32_t libhashkit_fnv1a_64(const char *key, size_t key_length);
30
31 HASHKIT_API
32 uint32_t libhashkit_fnv1_32(const char *key, size_t key_length);
33
34 HASHKIT_API
35 uint32_t libhashkit_fnv1a_32(const char *key, size_t key_length);
36
37 HASHKIT_API
38 uint32_t libhashkit_crc32(const char *key, size_t key_length);
39
40 HASHKIT_API
41 uint32_t libhashkit_hsieh(const char *key, size_t key_length);
42
43 HASHKIT_API
44 uint32_t libhashkit_murmur(const char *key, size_t key_length);
45
46 HASHKIT_API
47 uint32_t libhashkit_murmur3(const char *key, size_t key_length);
48
49 HASHKIT_API
50 uint32_t libhashkit_jenkins(const char *key, size_t key_length);
51
52 HASHKIT_API
53 uint32_t libhashkit_md5(const char *key, size_t key_length);
54
55 HASHKIT_API
56 void libhashkit_md5_signature(const unsigned char *key, size_t length, unsigned char *result);
57
58 #ifdef __cplusplus
59 }
60 #endif