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"
|
2020-06-15 14:18:57 +00: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 08:37:33 +00:00
|
|
|
#define zmemzero bzero
|
|
|
|
#define zmemcpy memmove
|
|
|
|
#define z_const const
|
|
|
|
|
2022-11-08 19:39:50 +00:00
|
|
|
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned) _Hide;
|
|
|
|
void copy_with_crc(z_streamp, Bytef *, long) _Hide;
|
|
|
|
void crc_finalize(deflate_state *const) _Hide;
|
|
|
|
void crc_reset(deflate_state *const) _Hide;
|
|
|
|
uint32_t adler32_simd_(uint32_t, const unsigned char *, size_t) _Hide;
|
|
|
|
void crc_fold_init(deflate_state *const) _Hide;
|
2022-09-17 08:37:33 +00:00
|
|
|
void crc_fold_copy(deflate_state *const, unsigned char *, const unsigned char *,
|
2022-11-08 19:39:50 +00:00
|
|
|
long) _Hide;
|
|
|
|
unsigned crc_fold_512to32(deflate_state *const) _Hide;
|
|
|
|
void fill_window_sse(deflate_state *) _Hide;
|
|
|
|
void *zcalloc(void *, uInt, uInt) _Hide;
|
|
|
|
void zcfree(void *, void *) _Hide;
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_ */
|