gzip: Improve ptr_to_globals trick, allowing gcc
to optimize better. -480 bytes.
This commit is contained in:
@@ -2045,8 +2045,8 @@ int gzip_main(int argc, char **argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
ptr_to_globals = xzalloc(sizeof(struct globals) + sizeof(struct globals2));
|
||||
ptr_to_globals++;
|
||||
PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2))
|
||||
+ sizeof(struct globals);
|
||||
G2.l_desc.dyn_tree = G2.dyn_ltree;
|
||||
G2.l_desc.static_tree = G2.static_ltree;
|
||||
G2.l_desc.extra_bits = extra_lbits;
|
||||
|
Reference in New Issue
Block a user