Searched refs:bitD (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/lib/zstd/common/ |
D | bitstream.h | 96 MEM_STATIC size_t BIT_initDStream(BIT_DStream_t* bitD, const void* srcBuffer, size_t srcSize); 97 MEM_STATIC size_t BIT_readBits(BIT_DStream_t* bitD, unsigned nbBits); 98 MEM_STATIC BIT_DStream_status BIT_reloadDStream(BIT_DStream_t* bitD); 99 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* bitD); 122 MEM_STATIC size_t BIT_readBitsFast(BIT_DStream_t* bitD, unsigned nbBits); 258 MEM_STATIC size_t BIT_initDStream(BIT_DStream_t* bitD, const void* srcBuffer, size_t srcSize) in BIT_initDStream() argument 260 if (srcSize < 1) { ZSTD_memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); } in BIT_initDStream() 262 bitD->start = (const char*)srcBuffer; in BIT_initDStream() 263 bitD->limitPtr = bitD->start + sizeof(bitD->bitContainer); in BIT_initDStream() 265 if (srcSize >= sizeof(bitD->bitContainer)) { /* normal case */ in BIT_initDStream() [all …]
|
D | fse_decompress.c | 241 BIT_DStream_t bitD; in FSE_decompress_usingDTable_generic() local 246 CHECK_F(BIT_initDStream(&bitD, cSrc, cSrcSize)); in FSE_decompress_usingDTable_generic() 248 FSE_initDState(&state1, &bitD, dt); in FSE_decompress_usingDTable_generic() 249 FSE_initDState(&state2, &bitD, dt); in FSE_decompress_usingDTable_generic() 251 …ETSYMBOL(statePtr) fast ? FSE_decodeSymbolFast(statePtr, &bitD) : FSE_decodeSymbol(statePtr, &bitD) in FSE_decompress_usingDTable_generic() 254 for ( ; (BIT_reloadDStream(&bitD)==BIT_DStream_unfinished) & (op<olimit) ; op+=4) { in FSE_decompress_usingDTable_generic() 257 if (FSE_MAX_TABLELOG*2+7 > sizeof(bitD.bitContainer)*8) /* This test must be static */ in FSE_decompress_usingDTable_generic() 258 BIT_reloadDStream(&bitD); in FSE_decompress_usingDTable_generic() 262 if (FSE_MAX_TABLELOG*4+7 > sizeof(bitD.bitContainer)*8) /* This test must be static */ in FSE_decompress_usingDTable_generic() 263 { if (BIT_reloadDStream(&bitD) > BIT_DStream_unfinished) { op+=2; break; } } in FSE_decompress_usingDTable_generic() [all …]
|
D | fse.h | 440 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt); 442 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD); 499 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD); 600 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument 604 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState() 605 BIT_reloadDStream(bitD); in FSE_initDState() 615 MEM_STATIC void FSE_updateState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_updateState() argument 619 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState() 623 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument 628 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol() [all …]
|
/linux-6.12.1/lib/zstd/decompress/ |
D | huf_decompress.c | 535 BIT_DStream_t bitD; in HUF_decompress1X1_usingDTable_internal_body() local 539 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X1_usingDTable_internal_body() 541 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body() 543 if (!BIT_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUF_decompress1X1_usingDTable_internal_body() 1223 BIT_DStream_t bitD; in HUF_decompress1X2_usingDTable_internal_body() local 1226 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X2_usingDTable_internal_body() 1234 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X2_usingDTable_internal_body() 1238 if (!BIT_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUF_decompress1X2_usingDTable_internal_body()
|
D | zstd_decompress_block.c | 1138 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument 1142 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState() 1145 BIT_reloadDStream(bitD); in ZSTD_initFseState() 1150 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBi… in ZSTD_updateFseStateWithDInfo() argument 1152 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseStateWithDInfo()
|