mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Optimize memory layout
This commit is contained in:
parent
0305194d98
commit
b69f3d2488
41 changed files with 383 additions and 347 deletions
6
third_party/zlib/deflate.internal.h
vendored
6
third_party/zlib/deflate.internal.h
vendored
|
@ -280,9 +280,6 @@ void _tr_stored_block(struct DeflateState *s, charf *buf, uint64_t stored_len,
|
|||
#define d_code(dist) \
|
||||
((dist) < 256 ? kZlibDistCode[dist] : kZlibDistCode[256 + ((dist) >> 7)])
|
||||
|
||||
#ifndef ZLIB_DEBUG
|
||||
/* Inline versions of _tr_tally for speed: */
|
||||
|
||||
extern const ct_data kZlibStaticDtree[D_CODES] hidden;
|
||||
extern const ct_data kZlibStaticLtree[L_CODES + 2] hidden;
|
||||
extern const int kZlibBaseDist[D_CODES] hidden;
|
||||
|
@ -290,6 +287,9 @@ extern const int kZlibBaseLength[LENGTH_CODES] hidden;
|
|||
extern const uint8_t kZlibDistCode[DIST_CODE_LEN] hidden;
|
||||
extern const uint8_t kZlibLengthCode[MAX_MATCH - MIN_MATCH + 1] hidden;
|
||||
|
||||
#ifndef ZLIB_DEBUG
|
||||
/* Inline versions of _tr_tally for speed: */
|
||||
|
||||
#define _tr_tally_lit(s, c, flush) \
|
||||
{ \
|
||||
uint8_t cc = (c); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue