Link Here
|
536 |
# the size-dependent part now grows so fast. |
536 |
# the size-dependent part now grows so fast. |
537 |
# |
537 |
# |
538 |
# extra_bytes = (uncompressed_size >> 8) + 65536 |
538 |
# extra_bytes = (uncompressed_size >> 8) + 65536 |
|
|
539 |
# |
540 |
# ZSTD compressed data grows by at most 3 bytes per 128K, and only has a 22 |
541 |
# byte fixed overhead but has a maximum block size of 128K, so it needs a |
542 |
# larger margin. |
543 |
# |
544 |
# extra_bytes = (uncompressed_size >> 8) + 131072 |
539 |
|
545 |
|
540 |
#define ZO_z_extra_bytes ((ZO_z_output_len >> 8) + 65536) |
546 |
#define ZO_z_extra_bytes ((ZO_z_output_len >> 8) + 131072) |
541 |
#if ZO_z_output_len > ZO_z_input_len |
547 |
#if ZO_z_output_len > ZO_z_input_len |
542 |
# define ZO_z_extract_offset (ZO_z_output_len + ZO_z_extra_bytes - \ |
548 |
# define ZO_z_extract_offset (ZO_z_output_len + ZO_z_extra_bytes - \ |
543 |
ZO_z_input_len) |
549 |
ZO_z_input_len) |