libdatatypes
0.3.2
Abstract datatypes for C.
Loading...
Searching...
No Matches
hash.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin........: May 2012
3
copyright....: Sebastian Fedrau
4
email........: sebastian.fedrau@gmail.com
5
***************************************************************************/
6
7
/***************************************************************************
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License v3 as published by
10
the Free Software Foundation.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
General Public License v3 for more details.
16
***************************************************************************/
22
#ifndef HASH_H
23
#define HASH_H
24
25
#include <stdint.h>
26
28
typedef
uint32_t (*
HashFunc
)(
const
void
*ptr);
29
36
uint32_t
str_hash
(
const
void
*ptr);
37
44
uint32_t
direct_hash
(
const
void
*ptr);
45
46
#endif
47
str_hash
uint32_t str_hash(const void *ptr)
Definition
hash.c:28
direct_hash
uint32_t direct_hash(const void *ptr)
Definition
hash.c:44
HashFunc
uint32_t(* HashFunc)(const void *ptr)
Definition
hash.h:28
hash.h
Generated on Sat Oct 7 2023 10:49:13 for libdatatypes by
1.9.8