Home
last modified time | relevance | path

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

/dflybsd-src/contrib/zstd/lib/common/
H A Dentropy_common.c73 U32 bitStream; in FSE_readNCount_body() local
93 bitStream = MEM_readLE32(ip); in FSE_readNCount_body()
94 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
96 bitStream >>= 4; in FSE_readNCount_body()
110 int repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
120 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
121 repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
124 bitStream >>= 2 * repeats; in FSE_readNCount_body()
128 assert((bitStream & 3) < 3); in FSE_readNCount_body()
129 charnum += bitStream & 3; in FSE_readNCount_body()
[all …]
/dflybsd-src/contrib/zstd/lib/compress/
H A Dfse_compress.c208 U32 bitStream = 0; in FSE_writeNCount_generic() local
215 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
230 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
233 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic()
234 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
236 bitStream>>=16; in FSE_writeNCount_generic()
240 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
243 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
248 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
249 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
[all …]