14 #ifndef FUZZ_HELPERS_H
15 #define FUZZ_HELPERS_H
27 #define LZ4_COMMONDEFS_ONLY
28 #ifndef LZ4_SRC_INCLUDED
32 #define MIN(a,b) ( (a) < (b) ? (a) : (b) )
33 #define MAX(a,b) ( (a) > (b) ? (a) : (b) )
35 #define FUZZ_QUOTE_IMPL(str) #str
36 #define FUZZ_QUOTE(str) FUZZ_QUOTE_IMPL(str)
41 #define FUZZ_ASSERT_MSG(cond, msg) \
43 : (fprintf(stderr, "%s: %u: Assertion: `%s' failed. %s\n", __FILE__, \
44 __LINE__, FUZZ_QUOTE(cond), (msg)), \
46 #define FUZZ_ASSERT(cond) FUZZ_ASSERT_MSG((cond), "");
49 #define FUZZ_STATIC static __inline __attribute__((unused))
50 #elif defined(__cplusplus) || \
51 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
52 #define FUZZ_STATIC static inline
53 #elif defined(_MSC_VER)
54 #define FUZZ_STATIC static __inline
56 #define FUZZ_STATIC static
68 return XXH32(data, toHash, 0);
71 #define FUZZ_rotl32(x, r) (((x) << (r)) | ((x) >> (32 - (r))))
#define FUZZ_RNG_SEED_SIZE
FUZZ_STATIC uint32_t FUZZ_seed(uint8_t const **src, size_t *size)
FUZZ_STATIC uint32_t FUZZ_rand(uint32_t *state)
#define FUZZ_rotl32(x, r)
FUZZ_STATIC uint32_t FUZZ_rand32(uint32_t *state, uint32_t min, uint32_t max)
XXH_PUBLIC_API unsigned int XXH32(const void *input, size_t len, unsigned int seed)