forked from athonet-open/khash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
khash.h
40 lines (36 loc) · 1.29 KB
/
khash.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* KHASH
* An ultra fast hash table in kernel space based on hashtable.h
* Copyright (C) 2016-2017 - Athonet s.r.l. - All Rights Reserved
*
* Authors:
* Paolo Missiaggia, <paolo.Missiaggia@athonet.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef KHASH_H
#define KHASH_H
#define KHASH_NAME "KHASH"
#define KHASH_MAJOR 1
#define KHASH_MINOR 3
#define KHASH_PATCH 3
#define KHASH_STR_H(x) #x
#define KHASH_STR(x) KHASH_STR_H(x)
#define KHASH_VERSION(a, b, c) (((a) << 24) + ((b) << 16) + (c))
#define KHASH_VERSION_STR \
KHASH_NAME ": " KHASH_STR(KHASH_MAJOR) "." \
KHASH_STR(KHASH_MINOR) "." KHASH_STR(KHASH_PATCH)
#include "khash_mgmnt.h"
#include "khash_utils.h"
#endif