Searched refs:bitD (Results 1 – 4 of 4) sorted by relevance
/linux-4.19.296/lib/zstd/ |
D | bitstream.h | 118 ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, size_t srcSize); 119 ZSTD_STATIC size_t BIT_readBits(BIT_DStream_t *bitD, unsigned nbBits); 120 ZSTD_STATIC BIT_DStream_status BIT_reloadDStream(BIT_DStream_t *bitD); 121 ZSTD_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t *bitD); 142 ZSTD_STATIC size_t BIT_readBitsFast(BIT_DStream_t *bitD, unsigned nbBits); 239 ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, size_t srcSize) in BIT_initDStream() argument 242 memset(bitD, 0, sizeof(*bitD)); in BIT_initDStream() 246 if (srcSize >= sizeof(bitD->bitContainer)) { /* normal case */ in BIT_initDStream() 247 bitD->start = (const char *)srcBuffer; in BIT_initDStream() 248 bitD->ptr = (const char *)srcBuffer + srcSize - sizeof(bitD->bitContainer); in BIT_initDStream() [all …]
|
D | fse_decompress.c | 222 BIT_DStream_t bitD; in FSE_decompress_usingDTable_generic() local 227 CHECK_F(BIT_initDStream(&bitD, cSrc, cSrcSize)); in FSE_decompress_usingDTable_generic() 229 FSE_initDState(&state1, &bitD, dt); in FSE_decompress_usingDTable_generic() 230 FSE_initDState(&state2, &bitD, dt); in FSE_decompress_usingDTable_generic() 232 …ETSYMBOL(statePtr) fast ? FSE_decodeSymbolFast(statePtr, &bitD) : FSE_decodeSymbol(statePtr, &bitD) in FSE_decompress_usingDTable_generic() 235 for (; (BIT_reloadDStream(&bitD) == BIT_DStream_unfinished) & (op < olimit); op += 4) { in FSE_decompress_usingDTable_generic() 238 if (FSE_MAX_TABLELOG * 2 + 7 > sizeof(bitD.bitContainer) * 8) /* This test must be static */ in FSE_decompress_usingDTable_generic() 239 BIT_reloadDStream(&bitD); in FSE_decompress_usingDTable_generic() 243 if (FSE_MAX_TABLELOG * 4 + 7 > sizeof(bitD.bitContainer) * 8) /* This test must be static */ in FSE_decompress_usingDTable_generic() 245 if (BIT_reloadDStream(&bitD) > BIT_DStream_unfinished) { in FSE_decompress_usingDTable_generic() [all …]
|
D | fse.h | 358 static void FSE_initDState(FSE_DState_t *DStatePtr, BIT_DStream_t *bitD, const FSE_DTable *dt); 360 static unsigned char FSE_decodeSymbol(FSE_DState_t *DStatePtr, BIT_DStream_t *bitD); 416 static unsigned char FSE_decodeSymbolFast(FSE_DState_t *DStatePtr, BIT_DStream_t *bitD); 481 ZSTD_STATIC void FSE_initDState(FSE_DState_t *DStatePtr, BIT_DStream_t *bitD, const FSE_DTable *dt) in FSE_initDState() argument 485 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState() 486 BIT_reloadDStream(bitD); in FSE_initDState() 496 ZSTD_STATIC void FSE_updateState(FSE_DState_t *DStatePtr, BIT_DStream_t *bitD) in FSE_updateState() argument 500 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState() 504 ZSTD_STATIC BYTE FSE_decodeSymbol(FSE_DState_t *DStatePtr, BIT_DStream_t *bitD) in FSE_decodeSymbol() argument 509 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol() [all …]
|
D | huf_decompress.c | 205 BIT_DStream_t bitD; in HUF_decompress1X2_usingDTable_internal() local 210 size_t const errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); in HUF_decompress1X2_usingDTable_internal() 215 HUF_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUF_decompress1X2_usingDTable_internal() 218 if (!BIT_endOfDStream(&bitD)) in HUF_decompress1X2_usingDTable_internal() 657 BIT_DStream_t bitD; in HUF_decompress1X4_usingDTable_internal() local 661 size_t const errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); in HUF_decompress1X4_usingDTable_internal() 673 HUF_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X4_usingDTable_internal() 677 if (!BIT_endOfDStream(&bitD)) in HUF_decompress1X4_usingDTable_internal()
|