Searched refs:memLevel (Results 1 – 2 of 2) sorted by relevance
254 #define zlib_deflate_head_memsize(memLevel) \ argument255 ((1 << ((memLevel)+7)) * sizeof(Pos))256 #define zlib_deflate_overlay_memsize(memLevel) \ argument257 ((1 << ((memLevel)+6)) * (sizeof(ush)+2))
172 int memLevel, in zlib_deflateInit2() argument198 if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED || in zlib_deflateInit2()215 next += zlib_deflate_head_memsize(memLevel); in zlib_deflateInit2()227 s->hash_bits = memLevel + 7; in zlib_deflateInit2()236 s->lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */ in zlib_deflateInit2()1266 int zlib_deflate_workspacesize(int windowBits, int memLevel) in zlib_deflate_workspacesize() argument1272 BUG_ON(memLevel < 1 || memLevel > MAX_MEM_LEVEL || windowBits < 9 || in zlib_deflate_workspacesize()1278 + zlib_deflate_head_memsize(memLevel) in zlib_deflate_workspacesize()1279 + zlib_deflate_overlay_memsize(memLevel); in zlib_deflate_workspacesize()