]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/zstd/contrib/linux-kernel/lib/zstd/fse.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / zstd / contrib / linux-kernel / lib / zstd / fse.h
index 7460ab04b1916db01f23d243b2eb226b7a694a10..a694199fdfd15acaf24eabad1eb1d4acf4c536e4 100644 (file)
@@ -232,7 +232,7 @@ If there is an error, the function will return an error code, which can be teste
 *******************************************/
 /* FSE buffer bounds */
 #define FSE_NCOUNTBOUND 512
-#define FSE_BLOCKBOUND(size) (size + (size >> 7))
+#define FSE_BLOCKBOUND(size) (size + (size >> 7) + 4 /* constant for initial fse states */ )
 #define FSE_COMPRESSBOUND(size) (FSE_NCOUNTBOUND + FSE_BLOCKBOUND(size)) /* Macro version, useful for static allocation */
 
 /* It is possible to statically allocate FSE CTable/DTable as a table of FSE_CTable/FSE_DTable using below macros */