Debian Codegraph @

ext/zlib-ng/insert_string_roll.c

raw symbols SCIP
1 /* insert_string_roll.c -- insert_string rolling 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 5
12
13 #define HASH_CALC(s, h, val) h = ((h << HASH_SLIDE) ^ ((uint8_t)val))
14 #define HASH_CALC_VAR s->ins_h
15 #define HASH_CALC_VAR_INIT
16 #define HASH_CALC_READ val = strstart[0]
17 #define HASH_CALC_MASK (32768u - 1u)
18 #define HASH_CALC_OFFSET (STD_MIN_MATCH-1)
19
20 #define UPDATE_HASH update_hash_roll
21 #define INSERT_STRING insert_string_roll
22 #define QUICK_INSERT_STRING quick_insert_string_roll
23
24 #include "insert_string_tpl.h"