]> git.ipfire.org Git - thirdparty/zstd.git/commit
refactor ZSTD_check_compressionLevel_monotonicIncrease_memoryBudget() 739/head
authorYann Collet <cyan@fb.com>
Thu, 29 Jun 2017 03:17:22 +0000 (20:17 -0700)
committerYann Collet <cyan@fb.com>
Thu, 29 Jun 2017 03:24:08 +0000 (20:24 -0700)
commit037466245fd01669d6a7347e5560000ae2aba44d
treec58d64a7f5b5bcbf8573c996663413ed236b5384
parent2bf428df4532d49da06aeaf0f3df44ca5952e193
refactor ZSTD_check_compressionLevel_monotonicIncrease_memoryBudget()

use less macro statements
the initial version was meant to work with STATIC_ASSERT
but since it doesn't work and needs assert()
it's possible to rewrite it using normally compiled code
which is better for compiler.

Downside : the error message is less precise.
There is a DEBUGLOG(3,) to compensate.
doc/zstd_manual.html
lib/compress/zstd_compress.c