70 #ifndef XXHASH_H_5627135585666179
71 #define XXHASH_H_5627135585666179 1
73 #if defined (__cplusplus)
98 #if defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API)
99 # ifndef XXH_STATIC_LINKING_ONLY
100 # define XXH_STATIC_LINKING_ONLY
102 # if defined(__GNUC__)
103 # define XXH_PUBLIC_API static __inline __attribute__((unused))
104 # elif defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
105 # define XXH_PUBLIC_API static inline
106 # elif defined(_MSC_VER)
107 # define XXH_PUBLIC_API static __inline
110 # define XXH_PUBLIC_API static
113 # define XXH_PUBLIC_API
128 # define XXH_CAT(A,B) A##B
129 # define XXH_NAME2(A,B) XXH_CAT(A,B)
130 # define XXH_versionNumber XXH_NAME2(XXH_NAMESPACE, XXH_versionNumber)
131 # define XXH32 XXH_NAME2(XXH_NAMESPACE, XXH32)
132 # define XXH32_createState XXH_NAME2(XXH_NAMESPACE, XXH32_createState)
133 # define XXH32_freeState XXH_NAME2(XXH_NAMESPACE, XXH32_freeState)
134 # define XXH32_reset XXH_NAME2(XXH_NAMESPACE, XXH32_reset)
135 # define XXH32_update XXH_NAME2(XXH_NAMESPACE, XXH32_update)
136 # define XXH32_digest XXH_NAME2(XXH_NAMESPACE, XXH32_digest)
137 # define XXH32_copyState XXH_NAME2(XXH_NAMESPACE, XXH32_copyState)
138 # define XXH32_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH32_canonicalFromHash)
139 # define XXH32_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH32_hashFromCanonical)
140 # define XXH64 XXH_NAME2(XXH_NAMESPACE, XXH64)
141 # define XXH64_createState XXH_NAME2(XXH_NAMESPACE, XXH64_createState)
142 # define XXH64_freeState XXH_NAME2(XXH_NAMESPACE, XXH64_freeState)
143 # define XXH64_reset XXH_NAME2(XXH_NAMESPACE, XXH64_reset)
144 # define XXH64_update XXH_NAME2(XXH_NAMESPACE, XXH64_update)
145 # define XXH64_digest XXH_NAME2(XXH_NAMESPACE, XXH64_digest)
146 # define XXH64_copyState XXH_NAME2(XXH_NAMESPACE, XXH64_copyState)
147 # define XXH64_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH64_canonicalFromHash)
148 # define XXH64_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH64_hashFromCanonical)
155 #define XXH_VERSION_MAJOR 0
156 #define XXH_VERSION_MINOR 6
157 #define XXH_VERSION_RELEASE 5
158 #define XXH_VERSION_NUMBER (XXH_VERSION_MAJOR *100*100 + XXH_VERSION_MINOR *100 + XXH_VERSION_RELEASE)
218 #ifndef XXH_NO_LONG_LONG
249 #ifdef XXH_STATIC_LINKING_ONLY
262 #if !defined (__VMS) \
263 && (defined (__cplusplus) \
264 || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) ) )
267 struct XXH32_state_s {
279 struct XXH64_state_s {
292 struct XXH32_state_s {
293 unsigned total_len_32;
304 # ifndef XXH_NO_LONG_LONG
305 struct XXH64_state_s {
306 unsigned long long total_len;
307 unsigned long long v1;
308 unsigned long long v2;
309 unsigned long long v3;
310 unsigned long long v4;
311 unsigned long long mem64[4];
320 #if defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API)
327 #if defined (__cplusplus)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
struct XXH32_state_s XXH32_state_t
struct XXH64_state_s XXH64_state_t
XXH_PUBLIC_API XXH32_hash_t XXH32_hashFromCanonical(const XXH32_canonical_t *src)
XXH_PUBLIC_API XXH32_state_t * XXH32_createState(void)
XXH_PUBLIC_API XXH32_hash_t XXH32_digest(const XXH32_state_t *statePtr)
unsigned long long XXH64_hash_t
XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t *dst_state, const XXH64_state_t *src_state)
XXH_PUBLIC_API XXH_errorcode XXH64_update(XXH64_state_t *statePtr, const void *input, size_t length)
XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t *statePtr, unsigned int seed)
XXH_PUBLIC_API XXH64_hash_t XXH64(const void *input, size_t length, unsigned long long seed)
XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t *statePtr, unsigned long long seed)
XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t *dst_state, const XXH32_state_t *src_state)
XXH_PUBLIC_API XXH64_state_t * XXH64_createState(void)
XXH_PUBLIC_API XXH32_hash_t XXH32(const void *input, size_t length, unsigned int seed)
XXH_PUBLIC_API XXH64_hash_t XXH64_digest(const XXH64_state_t *statePtr)
XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XXH32_state_t *statePtr)
XXH_PUBLIC_API XXH_errorcode XXH32_update(XXH32_state_t *statePtr, const void *input, size_t length)
unsigned int XXH32_hash_t
XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t *src)
XXH_PUBLIC_API void XXH32_canonicalFromHash(XXH32_canonical_t *dst, XXH32_hash_t hash)
XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t *statePtr)
XXH_PUBLIC_API void XXH64_canonicalFromHash(XXH64_canonical_t *dst, XXH64_hash_t hash)
XXH_PUBLIC_API unsigned XXH_versionNumber(void)
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)