Searched refs:bitC (Results 1 – 4 of 4) sorted by relevance
/linux-4.19.296/lib/zstd/ |
D | bitstream.h | 78 ZSTD_STATIC size_t BIT_initCStream(BIT_CStream_t *bitC, void *dstBuffer, size_t dstCapacity); 79 ZSTD_STATIC void BIT_addBits(BIT_CStream_t *bitC, size_t value, unsigned nbBits); 80 ZSTD_STATIC void BIT_flushBits(BIT_CStream_t *bitC); 81 ZSTD_STATIC size_t BIT_closeCStream(BIT_CStream_t *bitC); 136 ZSTD_STATIC void BIT_addBitsFast(BIT_CStream_t *bitC, size_t value, unsigned nbBits); 139 ZSTD_STATIC void BIT_flushBitsFast(BIT_CStream_t *bitC); 162 ZSTD_STATIC size_t BIT_initCStream(BIT_CStream_t *bitC, void *startPtr, size_t dstCapacity) in BIT_initCStream() argument 164 bitC->bitContainer = 0; in BIT_initCStream() 165 bitC->bitPos = 0; in BIT_initCStream() 166 bitC->startPtr = (char *)startPtr; in BIT_initCStream() [all …]
|
D | fse_compress.c | 730 BIT_CStream_t bitC; in FSE_compress_usingCTable_generic() local 737 size_t const initError = BIT_initCStream(&bitC, dst, dstSize); in FSE_compress_usingCTable_generic() 747 FSE_encodeSymbol(&bitC, &CState1, *--ip); in FSE_compress_usingCTable_generic() 748 FSE_FLUSHBITS(&bitC); in FSE_compress_usingCTable_generic() 756 if ((sizeof(bitC.bitContainer) * 8 > FSE_MAX_TABLELOG * 4 + 7) && (srcSize & 2)) { /* test bit 2 */ in FSE_compress_usingCTable_generic() 757 FSE_encodeSymbol(&bitC, &CState2, *--ip); in FSE_compress_usingCTable_generic() 758 FSE_encodeSymbol(&bitC, &CState1, *--ip); in FSE_compress_usingCTable_generic() 759 FSE_FLUSHBITS(&bitC); in FSE_compress_usingCTable_generic() 765 FSE_encodeSymbol(&bitC, &CState2, *--ip); in FSE_compress_usingCTable_generic() 767 if (sizeof(bitC.bitContainer) * 8 < FSE_MAX_TABLELOG * 2 + 7) /* this test must be static */ in FSE_compress_usingCTable_generic() [all …]
|
D | huf_compress.c | 545 BIT_CStream_t bitC; in HUF_compress1X_usingCTable() local 551 size_t const initErr = BIT_initCStream(&bitC, op, oend - op); in HUF_compress1X_usingCTable() 558 case 3: HUF_encodeSymbol(&bitC, ip[n + 2], CTable); HUF_FLUSHBITS_2(&bitC); in HUF_compress1X_usingCTable() 559 case 2: HUF_encodeSymbol(&bitC, ip[n + 1], CTable); HUF_FLUSHBITS_1(&bitC); in HUF_compress1X_usingCTable() 560 case 1: HUF_encodeSymbol(&bitC, ip[n + 0], CTable); HUF_FLUSHBITS(&bitC); in HUF_compress1X_usingCTable() 566 HUF_encodeSymbol(&bitC, ip[n - 1], CTable); in HUF_compress1X_usingCTable() 567 HUF_FLUSHBITS_1(&bitC); in HUF_compress1X_usingCTable() 568 HUF_encodeSymbol(&bitC, ip[n - 2], CTable); in HUF_compress1X_usingCTable() 569 HUF_FLUSHBITS_2(&bitC); in HUF_compress1X_usingCTable() 570 HUF_encodeSymbol(&bitC, ip[n - 3], CTable); in HUF_compress1X_usingCTable() [all …]
|
D | fse.h | 303 static void FSE_encodeSymbol(BIT_CStream_t *bitC, FSE_CState_t *CStatePtr, unsigned symbol); 305 static void FSE_flushCState(BIT_CStream_t *bitC, const FSE_CState_t *CStatePtr); 453 ZSTD_STATIC void FSE_encodeSymbol(BIT_CStream_t *bitC, FSE_CState_t *statePtr, U32 symbol) in FSE_encodeSymbol() argument 458 BIT_addBits(bitC, statePtr->value, nbBitsOut); in FSE_encodeSymbol() 462 ZSTD_STATIC void FSE_flushCState(BIT_CStream_t *bitC, const FSE_CState_t *statePtr) in FSE_flushCState() argument 464 BIT_addBits(bitC, statePtr->value, statePtr->stateLog); in FSE_flushCState() 465 BIT_flushBits(bitC); in FSE_flushCState()
|