Home
last modified time | relevance | path

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

/lib/zstd/
Dentropy_common.c67 U32 bitStream; in FSE_readNCount() local
74 bitStream = ZSTD_readLE32(ip); in FSE_readNCount()
75 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount()
78 bitStream >>= 4; in FSE_readNCount()
88 while ((bitStream & 0xFFFF) == 0xFFFF) { in FSE_readNCount()
92 bitStream = ZSTD_readLE32(ip) >> bitCount; in FSE_readNCount()
94 bitStream >>= 16; in FSE_readNCount()
98 while ((bitStream & 3) == 3) { in FSE_readNCount()
100 bitStream >>= 2; in FSE_readNCount()
103 n0 += bitStream & 3; in FSE_readNCount()
[all …]
Dfse_compress.c213 U32 bitStream; in FSE_writeNCount_generic() local
218 bitStream = 0; in FSE_writeNCount_generic()
221 bitStream += (tableLog - FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
236 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
239 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
240 out[1] = (BYTE)(bitStream >> 8); in FSE_writeNCount_generic()
242 bitStream >>= 16; in FSE_writeNCount_generic()
246 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
249 bitStream += (charnum - start) << bitCount; in FSE_writeNCount_generic()
254 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
[all …]