Home
last modified time | relevance | path

Searched refs:memLevel (Results 1 – 2 of 2) sorted by relevance

/lib/zlib_deflate/
Ddefutil.h254 #define zlib_deflate_head_memsize(memLevel) \ argument
255 ((1 << ((memLevel)+7)) * sizeof(Pos))
256 #define zlib_deflate_overlay_memsize(memLevel) \ argument
257 ((1 << ((memLevel)+6)) * (sizeof(ush)+2))
Ddeflate.c172 int memLevel, in zlib_deflateInit2() argument
198 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() argument
1272 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()