1 Star 0 Fork 1

yyqng / memcached-memcached-master

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
crc32c.h 770 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef CRC32C_H
#define CRC32C_H
// crc32c.h -- header for crc32c.c
// Copyright (C) 2015 Mark Adler
// See crc32c.c for the license.
#include <stdint.h>
// Return the CRC-32C of buf[0..len-1] given the starting CRC crc. This can be
// used to calculate the CRC of a sequence of bytes a chunk at a time, using
// the previously returned crc in the next call. The first call must be with
// crc == 0. crc32c() uses the Intel crc32 hardware instruction if available.
typedef uint32_t (*crc_func)(uint32_t crc, const void *buf, size_t len);
extern crc_func crc32c;
void crc32c_init(void);
// Expose a prototype for the crc32c software variant simply for testing purposes
uint32_t crc32c_sw(uint32_t crc, void const *buf, size_t len);
#endif /* CRC32C_H */
1
https://gitee.com/yyqng/memcached-memcached-master.git
git@gitee.com:yyqng/memcached-memcached-master.git
yyqng
memcached-memcached-master
memcached-memcached-master
master

搜索帮助