xref: /illumos-gate/usr/src/uts/common/fs/zfs/sys/cityhash.h (revision 3a2d8a1b)
1*3a2d8a1bSPaul Dagnelie // Copyright (c) 2011 Google, Inc.
2*3a2d8a1bSPaul Dagnelie //
3*3a2d8a1bSPaul Dagnelie // Permission is hereby granted, free of charge, to any person obtaining a copy
4*3a2d8a1bSPaul Dagnelie // of this software and associated documentation files (the "Software"), to deal
5*3a2d8a1bSPaul Dagnelie // in the Software without restriction, including without limitation the rights
6*3a2d8a1bSPaul Dagnelie // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7*3a2d8a1bSPaul Dagnelie // copies of the Software, and to permit persons to whom the Software is
8*3a2d8a1bSPaul Dagnelie // furnished to do so, subject to the following conditions:
9*3a2d8a1bSPaul Dagnelie //
10*3a2d8a1bSPaul Dagnelie // The above copyright notice and this permission notice shall be included in
11*3a2d8a1bSPaul Dagnelie // all copies or substantial portions of the Software.
12*3a2d8a1bSPaul Dagnelie //
13*3a2d8a1bSPaul Dagnelie // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14*3a2d8a1bSPaul Dagnelie // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15*3a2d8a1bSPaul Dagnelie // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16*3a2d8a1bSPaul Dagnelie // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17*3a2d8a1bSPaul Dagnelie // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18*3a2d8a1bSPaul Dagnelie // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19*3a2d8a1bSPaul Dagnelie // THE SOFTWARE.
20*3a2d8a1bSPaul Dagnelie 
21*3a2d8a1bSPaul Dagnelie 
22*3a2d8a1bSPaul Dagnelie /*
23*3a2d8a1bSPaul Dagnelie  * Copyright (c) 2017 by Delphix. All rights reserved.
24*3a2d8a1bSPaul Dagnelie  */
25*3a2d8a1bSPaul Dagnelie 
26*3a2d8a1bSPaul Dagnelie #ifndef	_SYS_CITYHASH_H
27*3a2d8a1bSPaul Dagnelie #define	_SYS_CITYHASH_H
28*3a2d8a1bSPaul Dagnelie 
29*3a2d8a1bSPaul Dagnelie #include <sys/zfs_context.h>
30*3a2d8a1bSPaul Dagnelie 
31*3a2d8a1bSPaul Dagnelie #ifdef	__cplusplus
32*3a2d8a1bSPaul Dagnelie extern "C" {
33*3a2d8a1bSPaul Dagnelie #endif
34*3a2d8a1bSPaul Dagnelie 
35*3a2d8a1bSPaul Dagnelie uint64_t cityhash4(uint64_t, uint64_t, uint64_t, uint64_t);
36*3a2d8a1bSPaul Dagnelie 
37*3a2d8a1bSPaul Dagnelie #ifdef	__cplusplus
38*3a2d8a1bSPaul Dagnelie }
39*3a2d8a1bSPaul Dagnelie #endif
40*3a2d8a1bSPaul Dagnelie 
41*3a2d8a1bSPaul Dagnelie #endif	/* _SYS_CITYHASH_H */
42