Commit | Line | Data |
---|---|---|
819dc7d4 | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca> |
819dc7d4 | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
819dc7d4 | 5 | * |
819dc7d4 DG |
6 | */ |
7 | ||
bec39940 DG |
8 | #ifndef _LTT_HT_UTILS_H |
9 | #define _LTT_HT_UTILS_H | |
819dc7d4 | 10 | |
bec39940 | 11 | #include <stdint.h> |
819dc7d4 | 12 | |
7966af57 SM |
13 | #ifdef __cplusplus |
14 | extern "C" { | |
15 | #endif | |
16 | ||
bcd52dd9 JG |
17 | unsigned long hash_key_ulong(const void *_key, unsigned long seed); |
18 | unsigned long hash_key_u64(const void *_key, unsigned long seed); | |
19 | unsigned long hash_key_str(const void *key, unsigned long seed); | |
20 | unsigned long hash_key_two_u64(const void *key, unsigned long seed); | |
21 | int hash_match_key_ulong(const void *key1, const void *key2); | |
22 | int hash_match_key_u64(const void *key1, const void *key2); | |
23 | int hash_match_key_str(const void *key1, const void *key2); | |
24 | int hash_match_key_two_u64(const void *key1, const void *key2); | |
819dc7d4 | 25 | |
7966af57 SM |
26 | #ifdef __cplusplus |
27 | } | |
28 | #endif | |
29 | ||
bec39940 | 30 | #endif /* _LTT_HT_UTILS_H */ |