]> git.ipfire.org Git - thirdparty/zstd.git/commit
added ZSTD_COMPRESSBOUND() as a macro
authorYann Collet <cyan@fb.com>
Sat, 30 Sep 2017 06:17:41 +0000 (23:17 -0700)
committerYann Collet <cyan@fb.com>
Sat, 30 Sep 2017 06:17:41 +0000 (23:17 -0700)
commit5b10345b263df7cf5aa078c3a084b3254a72326e
treeadfcdaac05cdecbc4efa6318589dcccae162d5fb
parente580dc6a4afb5f0e7bd644e7d20f9ff9bcd98aab
added ZSTD_COMPRESSBOUND() as a macro

ZSTD_compressBound() works fine, but is only useful for dynamic allocation.
For static allocation, only a macro can provide the amount during compilation time.
lib/compress/zstd_compress.c
lib/zstd.h