Lines Matching full:bitstream
22 #include "../common/bitstream.h"
228 + 2 /* additional two bytes for bitstream flush */; in FSE_NCountWriteBound()
244 U32 bitStream = 0; in FSE_writeNCount_generic() local
251 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
266 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
269 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic()
270 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
272 bitStream>>=16; in FSE_writeNCount_generic()
276 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
279 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
284 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
285 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
287 bitStream >>= 16; in FSE_writeNCount_generic()
296 bitStream += count << bitCount; in FSE_writeNCount_generic()
306 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
307 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
309 bitStream >>= 16; in FSE_writeNCount_generic()
317 /* flush remaining bitStream */ in FSE_writeNCount_generic()
320 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
321 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
607 if (FSE_isError(initError)) return 0; /* not enough space available to write a bitstream */ } in FSE_compress_usingCTable_generic()