1 /* $NetBSD: hash_fnv.h,v 1.2 2022/10/08 16:12:50 christos Exp $ */ 2 3 #ifndef _HASH_FNV_H_INCLUDED_ 4 #define _HASH_FNV_H_INCLUDED_ 5 6 /*++ 7 /* NAME 8 /* hash_fnv 3h 9 /* SUMMARY 10 /* Fowler/Noll/Vo hash function 11 /* SYNOPSIS 12 /* #include <hash_fnv.h> 13 /* DESCRIPTION 14 /* .nf 15 16 /* 17 * External interface. 18 */ 19 #ifndef HASH_FNV_T 20 #include <stdint.h> 21 #ifdef USE_FNV_32BIT 22 #define HASH_FNV_T uint32_t 23 #else /* USE_FNV_32BIT */ 24 #define HASH_FNV_T uint64_t 25 #endif /* USE_FNV_32BIT */ 26 #endif /* HASH_FNV_T */ 27 28 extern HASH_FNV_T hash_fnv(const void *, size_t); 29 30 /* LICENSE 31 /* .ad 32 /* .fi 33 /* The Secure Mailer license must be distributed with this software. 34 /* AUTHOR(S) 35 /* Wietse Venema 36 /* Google, Inc. 37 /* 111 8th Avenue 38 /* New York, NY 10011, USA 39 /*--*/ 40 41 #endif 42