]> git.ipfire.org Git - thirdparty/zstd.git/commit
Changed ZSTD_compressBound()
authorYann Collet <cyan@fb.com>
Sat, 1 Apr 2017 00:11:38 +0000 (17:11 -0700)
committerYann Collet <cyan@fb.com>
Sat, 1 Apr 2017 00:11:38 +0000 (17:11 -0700)
commit3f75d5252766bf0e638cf3fb7f5d63da50baaefe
treefb297db66da64f51f6db13aad54111137e29ad17
parent7b70a1969eb23c9e00274e6123fcf46c405be855
Changed ZSTD_compressBound()

required so that if Total = A+B
compressBound(Total) <= compressBound(A) + compressBound(B)
under condition of a minimum size for A and B

Will help for ZSTDMT_compress() memory allocation
lib/compress/zstd_compress.c