2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
|
2022-09-17 08:37:33 +00:00
|
|
|
#include "libc/str/str.h"
|
2021-03-01 07:42:35 +00:00
|
|
|
#include "third_party/zlib/deflate.internal.h"
|
2023-01-05 20:20:52 +00:00
|
|
|
#include "third_party/zlib/zconf.h"
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
#define Z_CRC32_SSE42_MINIMUM_LENGTH 64
|
|
|
|
#define Z_CRC32_SSE42_CHUNKSIZE_MASK 15
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-09-17 08:37:33 +00:00
|
|
|
#define zmemzero bzero
|
|
|
|
#define zmemcpy memmove
|
|
|
|
|
2023-07-24 15:31:54 +00:00
|
|
|
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned);
|
|
|
|
void copy_with_crc(z_streamp, Bytef *, long);
|
|
|
|
void crc_finalize(deflate_state *const);
|
|
|
|
void crc_reset(deflate_state *const);
|
|
|
|
uint32_t adler32_simd_(uint32_t, const unsigned char *, size_t);
|
|
|
|
void crc_fold_init(deflate_state *const);
|
2022-09-17 08:37:33 +00:00
|
|
|
void crc_fold_copy(deflate_state *const, unsigned char *, const unsigned char *,
|
2023-07-24 15:31:54 +00:00
|
|
|
long);
|
|
|
|
unsigned crc_fold_512to32(deflate_state *const);
|
|
|
|
void fill_window_sse(deflate_state *);
|
|
|
|
void *zcalloc(void *, uInt, uInt);
|
|
|
|
void zcfree(void *, void *);
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_ */
|