1 Star 0 Fork 0

caipengxiang/zlib-ng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
insert_string.c 841 Bytes
一键复制 编辑 原始数据 按行查看 历史
/* insert_string_c -- insert_string variant for c
*
* Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
*/
#include "zbuild.h"
#include "deflate.h"
/* ===========================================================================
* Update a hash value with the given input byte
* IN assertion: all calls to to UPDATE_HASH are made with consecutive
* input characters, so that a running hash key can be computed from the
* previous key instead of complete recalculation each time.
*/
#define HASH_SLIDE 16 // Number of bits to slide hash
#define UPDATE_HASH(s, h, val) \
h = ((val * 2654435761U) >> HASH_SLIDE);
#define INSERT_STRING insert_string_c
#define QUICK_INSERT_STRING quick_insert_string_c
#include "insert_string_tpl.h"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/awfeequdng/zlib-ng.git
git@gitee.com:awfeequdng/zlib-ng.git
awfeequdng
zlib-ng
zlib-ng
clickhouse-new

搜索帮助