]> git.ipfire.org Git - thirdparty/zstd.git/commit
reorganized ZSTD_resetCCtx_internal()
authorYann Collet <cyan@fb.com>
Fri, 21 Apr 2017 00:28:31 +0000 (17:28 -0700)
committerYann Collet <cyan@fb.com>
Fri, 21 Apr 2017 00:28:31 +0000 (17:28 -0700)
commite6fa70a0a1d8a229b0bf29218155cb3db53a03e7
tree22fc24c372e7f9c2ca07521fcdc783ff9b8606b6
parentc17e020c9aedbd421e19e3607a16d87559d29d97
reorganized ZSTD_resetCCtx_internal()

clearer separation between variables and buffers
clearer buffers category
kept static buffers at the beginning, favoring cache locality
(it will be easier to add FSE tables there later)

This break a few assumptions that hashTable was always at the beginning.
This is fixed.
And remaining assumptions (namely that tables stand next to each other in memory)
are now tested with assert.
lib/common/fse.h
lib/compress/zstd_compress.c