2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
|
2022-09-17 01:37:33 -07:00
|
|
|
#include "libc/str/str.h"
|
2021-02-28 23:42:35 -08:00
|
|
|
#include "third_party/zlib/deflate.internal.h"
|
2023-01-05 12:20:52 -08:00
|
|
|
#include "third_party/zlib/zconf.h"
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
#define Z_CRC32_SSE42_MINIMUM_LENGTH 64
|
|
|
|
#define Z_CRC32_SSE42_CHUNKSIZE_MASK 15
|
|
|
|
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-09-17 01:37:33 -07:00
|
|
|
#define zmemzero bzero
|
|
|
|
#define zmemcpy memmove
|
|
|
|
|
2023-07-24 08:31:54 -07: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 01:37:33 -07:00
|
|
|
void crc_fold_copy(deflate_state *const, unsigned char *, const unsigned char *,
|
2023-07-24 08:31:54 -07: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 07:18:57 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_ */
|