1 /* insert_string.c -- insert_string integer hash variant 2 * 3 * Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler 4 * For conditions of distribution and use, see copyright notice in zlib.h 5 * 6 */ 7 8 #include "zbuild.h" 9 #include "deflate.h" 10 11 #define HASH_SLIDE 16 12 13 #define HASH_CALC(s, h, val) h = ((val * 2654435761U) >> HASH_SLIDE); 14 #define HASH_CALC_VAR h 15 #define HASH_CALC_VAR_INIT uint32_t h = 0 16 17 #define UPDATE_HASH update_hash_c 18 #define INSERT_STRING insert_string_c 19 #define QUICK_INSERT_STRING quick_insert_string_c 20 21 #include "insert_string_tpl.h" 22