#include "deflate.h"
#ifdef CRC32_SIMD_SSE42_PCLMUL
#include <inttypes.h>
#include <emmintrin.h>
#include <immintrin.h>
#include <wmmintrin.h>
#define CRC_LOAD(s) …
#define CRC_SAVE(s) …
ZLIB_INTERNAL void crc_fold_init(deflate_state *const s)
{ … }
local void fold_1(deflate_state *const s,
__m128i *xmm_crc0, __m128i *xmm_crc1,
__m128i *xmm_crc2, __m128i *xmm_crc3)
{ … }
local void fold_2(deflate_state *const s,
__m128i *xmm_crc0, __m128i *xmm_crc1,
__m128i *xmm_crc2, __m128i *xmm_crc3)
{ … }
local void fold_3(deflate_state *const s,
__m128i *xmm_crc0, __m128i *xmm_crc1,
__m128i *xmm_crc2, __m128i *xmm_crc3)
{ … }
local void fold_4(deflate_state *const s,
__m128i *xmm_crc0, __m128i *xmm_crc1,
__m128i *xmm_crc2, __m128i *xmm_crc3)
{ … }
local const unsigned zalign(32) pshufb_shf_table[60] = …;
local void partial_fold(deflate_state *const s, const size_t len,
__m128i *xmm_crc0, __m128i *xmm_crc1,
__m128i *xmm_crc2, __m128i *xmm_crc3,
__m128i *xmm_crc_part)
{ … }
ZLIB_INTERNAL void crc_fold_copy(deflate_state *const s,
unsigned char *dst, const unsigned char *src, long len)
{ … }
local const unsigned zalign(16) crc_k[] = …;
local const unsigned zalign(16) crc_mask[4] = …;
local const unsigned zalign(16) crc_mask2[4] = …;
unsigned ZLIB_INTERNAL crc_fold_512to32(deflate_state *const s)
{ … }
#endif