Fabcoin Core
0.16.2
P2P Digital Currency
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
cpp-ethereum
libethash
fnv.h
Go to the documentation of this file.
1
/*
2
This file is part of cpp-ethereum.
3
4
cpp-ethereum is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
9
cpp-ethereum is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
16
*/
22
#pragma once
23
#include <stdint.h>
24
#include "
compiler.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
#define FNV_PRIME 0x01000193
31
32
static
inline
uint32_t fnv_hash(uint32_t
const
x
, uint32_t
const
y)
33
{
34
return
x *
FNV_PRIME
^ y;
35
}
36
37
#ifdef __cplusplus
38
}
39
#endif
compiler.h
x
#define x(i)
FNV_PRIME
#define FNV_PRIME
Definition:
fnv.h:30
Generated on Mon Oct 22 2018 15:15:27 for Fabcoin Core by
1.8.11