Lines Matching refs:BYTE
54 const BYTE *nextSrc; /* next block here to continue on curr prefix */
55 const BYTE *base; /* All regular indexes relative to this position */
56 const BYTE *dictBase; /* extDict indexes relative to this position */
320 zc->seqStore.llCode = (BYTE *)ptr; in ZSTD_resetCCtx_advanced()
438 memcpy((BYTE *)dst + ZSTD_blockHeaderSize, src, srcSize); in ZSTD_noCompressBlock()
445 BYTE *const ostart = (BYTE * const)dst; in ZSTD_noCompressLiterals()
452 case 1: /* 2 - 1 - 5 */ ostart[0] = (BYTE)((U32)set_basic + (srcSize << 3)); break; in ZSTD_noCompressLiterals()
464 BYTE *const ostart = (BYTE * const)dst; in ZSTD_compressRleLiteralsBlock()
470 case 1: /* 2 - 1 - 5 */ ostart[0] = (BYTE)((U32)set_rle + (srcSize << 3)); break; in ZSTD_compressRleLiteralsBlock()
476 ostart[flSize] = *(const BYTE *)src; in ZSTD_compressRleLiteralsBlock()
486 BYTE *const ostart = (BYTE *)dst; in ZSTD_compressLiterals()
546 ostart[4] = (BYTE)(cLitSize >> 10); in ZSTD_compressLiterals()
553 static const BYTE LL_Code[64] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16…
557 static const BYTE ML_Code[128] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1…
565 BYTE const LL_deltaCode = 19; in ZSTD_seqToCodes()
566 BYTE const ML_deltaCode = 36; in ZSTD_seqToCodes()
568 BYTE *const llCodeTable = seqStorePtr->llCode; in ZSTD_seqToCodes()
569 BYTE *const ofCodeTable = seqStorePtr->ofCode; in ZSTD_seqToCodes()
570 BYTE *const mlCodeTable = seqStorePtr->mlCode; in ZSTD_seqToCodes()
576 llCodeTable[u] = (llv > 63) ? (BYTE)ZSTD_highbit32(llv) + LL_deltaCode : LL_Code[llv]; in ZSTD_seqToCodes()
577 ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offset); in ZSTD_seqToCodes()
578 mlCodeTable[u] = (mlv > 127) ? (BYTE)ZSTD_highbit32(mlv) + ML_deltaCode : ML_Code[mlv]; in ZSTD_seqToCodes()
595 const BYTE *const ofCodeTable = seqStorePtr->ofCode; in ZSTD_compressSequences_internal()
596 const BYTE *const llCodeTable = seqStorePtr->llCode; in ZSTD_compressSequences_internal()
597 const BYTE *const mlCodeTable = seqStorePtr->mlCode; in ZSTD_compressSequences_internal()
598 BYTE *const ostart = (BYTE *)dst; in ZSTD_compressSequences_internal()
599 BYTE *const oend = ostart + dstCapacity; in ZSTD_compressSequences_internal()
600 BYTE *op = ostart; in ZSTD_compressSequences_internal()
602 BYTE *seqHead; in ZSTD_compressSequences_internal()
621 const BYTE *const literals = seqStorePtr->litStart; in ZSTD_compressSequences_internal()
633 *op++ = (BYTE)nbSeq; in ZSTD_compressSequences_internal()
635 op[0] = (BYTE)((nbSeq >> 8) + 0x80), op[1] = (BYTE)nbSeq, op += 2; in ZSTD_compressSequences_internal()
656 FSE_buildCTable_rle(CTable_LitLength, (BYTE)max); in ZSTD_compressSequences_internal()
688 FSE_buildCTable_rle(CTable_OffsetBits, (BYTE)max); in ZSTD_compressSequences_internal()
720 FSE_buildCTable_rle(CTable_MatchLength, (BYTE)max); in ZSTD_compressSequences_internal()
746 *seqHead = (BYTE)((LLtype << 6) + (Offtype << 4) + (MLtype << 2)); in ZSTD_compressSequences_internal()
784 BYTE const llCode = llCodeTable[n]; in ZSTD_compressSequences_internal()
785 BYTE const ofCode = ofCodeTable[n]; in ZSTD_compressSequences_internal()
786 BYTE const mlCode = mlCodeTable[n]; in ZSTD_compressSequences_internal()
907 static size_t ZSTD_count(const BYTE *pIn, const BYTE *pMatch, const BYTE *const pInLimit) in ZSTD_count()
909 const BYTE *const pStart = pIn; in ZSTD_count()
910 const BYTE *const pInLoopLimit = pInLimit - (sizeof(size_t) - 1); in ZSTD_count()
940 …atic size_t ZSTD_count_2segments(const BYTE *ip, const BYTE *match, const BYTE *iEnd, const BYTE *… in ZSTD_count_2segments()
942 const BYTE *const vEnd = MIN(ip + (mEnd - match), iEnd); in ZSTD_count_2segments()
996 const BYTE *const base = zc->base; in ZSTD_fillHashTable()
997 const BYTE *ip = base + zc->nextToUpdate; in ZSTD_fillHashTable()
998 const BYTE *const iend = ((const BYTE *)end) - HASH_READ_SIZE; in ZSTD_fillHashTable()
1013 const BYTE *const base = cctx->base; in ZSTD_compressBlock_fast_generic()
1014 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_fast_generic()
1015 const BYTE *ip = istart; in ZSTD_compressBlock_fast_generic()
1016 const BYTE *anchor = istart; in ZSTD_compressBlock_fast_generic()
1018 const BYTE *const lowest = base + lowestIndex; in ZSTD_compressBlock_fast_generic()
1019 const BYTE *const iend = istart + srcSize; in ZSTD_compressBlock_fast_generic()
1020 const BYTE *const ilimit = iend - HASH_READ_SIZE; in ZSTD_compressBlock_fast_generic()
1040 const BYTE *match = base + matchIndex; in ZSTD_compressBlock_fast_generic()
1121 const BYTE *const base = ctx->base; in ZSTD_compressBlock_fast_extDict_generic()
1122 const BYTE *const dictBase = ctx->dictBase; in ZSTD_compressBlock_fast_extDict_generic()
1123 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_fast_extDict_generic()
1124 const BYTE *ip = istart; in ZSTD_compressBlock_fast_extDict_generic()
1125 const BYTE *anchor = istart; in ZSTD_compressBlock_fast_extDict_generic()
1127 const BYTE *const dictStart = dictBase + lowestIndex; in ZSTD_compressBlock_fast_extDict_generic()
1129 const BYTE *const lowPrefixPtr = base + dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
1130 const BYTE *const dictEnd = dictBase + dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
1131 const BYTE *const iend = istart + srcSize; in ZSTD_compressBlock_fast_extDict_generic()
1132 const BYTE *const ilimit = iend - 8; in ZSTD_compressBlock_fast_extDict_generic()
1139 const BYTE *matchBase = matchIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_fast_extDict_generic()
1140 const BYTE *match = matchBase + matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
1143 const BYTE *repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_fast_extDict_generic()
1144 const BYTE *repMatch = repBase + repIndex; in ZSTD_compressBlock_fast_extDict_generic()
1150 const BYTE *repMatchEnd = repIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_fast_extDict_generic()
1160 const BYTE *matchEnd = matchIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_fast_extDict_generic()
1161 const BYTE *lowMatchPtr = matchIndex < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_compressBlock_fast_extDict_generic()
1188 const BYTE *repMatch2 = repIndex2 < dictLimit ? dictBase + repIndex2 : base + repIndex2; in ZSTD_compressBlock_fast_extDict_generic()
1191 const BYTE *const repEnd2 = repIndex2 < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_fast_extDict_generic()
1241 const BYTE *const base = cctx->base; in ZSTD_fillDoubleHashTable()
1242 const BYTE *ip = base + cctx->nextToUpdate; in ZSTD_fillDoubleHashTable()
1243 const BYTE *const iend = ((const BYTE *)end) - HASH_READ_SIZE; in ZSTD_fillDoubleHashTable()
1261 const BYTE *const base = cctx->base; in ZSTD_compressBlock_doubleFast_generic()
1262 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_doubleFast_generic()
1263 const BYTE *ip = istart; in ZSTD_compressBlock_doubleFast_generic()
1264 const BYTE *anchor = istart; in ZSTD_compressBlock_doubleFast_generic()
1266 const BYTE *const lowest = base + lowestIndex; in ZSTD_compressBlock_doubleFast_generic()
1267 const BYTE *const iend = istart + srcSize; in ZSTD_compressBlock_doubleFast_generic()
1268 const BYTE *const ilimit = iend - HASH_READ_SIZE; in ZSTD_compressBlock_doubleFast_generic()
1290 const BYTE *matchLong = base + matchIndexL; in ZSTD_compressBlock_doubleFast_generic()
1291 const BYTE *match = base + matchIndexS; in ZSTD_compressBlock_doubleFast_generic()
1311 const BYTE *match3 = base + matchIndex3; in ZSTD_compressBlock_doubleFast_generic()
1402 const BYTE *const base = ctx->base; in ZSTD_compressBlock_doubleFast_extDict_generic()
1403 const BYTE *const dictBase = ctx->dictBase; in ZSTD_compressBlock_doubleFast_extDict_generic()
1404 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_doubleFast_extDict_generic()
1405 const BYTE *ip = istart; in ZSTD_compressBlock_doubleFast_extDict_generic()
1406 const BYTE *anchor = istart; in ZSTD_compressBlock_doubleFast_extDict_generic()
1408 const BYTE *const dictStart = dictBase + lowestIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1410 const BYTE *const lowPrefixPtr = base + dictLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
1411 const BYTE *const dictEnd = dictBase + dictLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
1412 const BYTE *const iend = istart + srcSize; in ZSTD_compressBlock_doubleFast_extDict_generic()
1413 const BYTE *const ilimit = iend - 8; in ZSTD_compressBlock_doubleFast_extDict_generic()
1420 const BYTE *matchBase = matchIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic()
1421 const BYTE *match = matchBase + matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1425 const BYTE *matchLongBase = matchLongIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic()
1426 const BYTE *matchLong = matchLongBase + matchLongIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1430 const BYTE *repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic()
1431 const BYTE *repMatch = repBase + repIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1437 const BYTE *repMatchEnd = repIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic()
1443 const BYTE *matchEnd = matchLongIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic()
1444 const BYTE *lowMatchPtr = matchLongIndex < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_compressBlock_doubleFast_extDict_generic()
1460 const BYTE *const match3Base = matchIndex3 < dictLimit ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic()
1461 const BYTE *match3 = match3Base + matchIndex3; in ZSTD_compressBlock_doubleFast_extDict_generic()
1465 const BYTE *matchEnd = matchIndex3 < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic()
1466 const BYTE *lowMatchPtr = matchIndex3 < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_compressBlock_doubleFast_extDict_generic()
1476 const BYTE *matchEnd = matchIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic()
1477 const BYTE *lowMatchPtr = matchIndex < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_compressBlock_doubleFast_extDict_generic()
1510 const BYTE *repMatch2 = repIndex2 < dictLimit ? dictBase + repIndex2 : base + repIndex2; in ZSTD_compressBlock_doubleFast_extDict_generic()
1513 const BYTE *const repEnd2 = repIndex2 < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic()
1561 static U32 ZSTD_insertBt1(ZSTD_CCtx *zc, const BYTE *const ip, const U32 mls, const BYTE *const ien… in ZSTD_insertBt1()
1571 const BYTE *const base = zc->base; in ZSTD_insertBt1()
1572 const BYTE *const dictBase = zc->dictBase; in ZSTD_insertBt1()
1574 const BYTE *const dictEnd = dictBase + dictLimit; in ZSTD_insertBt1()
1575 const BYTE *const prefixStart = base + dictLimit; in ZSTD_insertBt1()
1576 const BYTE *match; in ZSTD_insertBt1()
1643 static size_t ZSTD_insertBtAndFindBestMatch(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const … in ZSTD_insertBtAndFindBestMatch()
1654 const BYTE *const base = zc->base; in ZSTD_insertBtAndFindBestMatch()
1655 const BYTE *const dictBase = zc->dictBase; in ZSTD_insertBtAndFindBestMatch()
1657 const BYTE *const dictEnd = dictBase + dictLimit; in ZSTD_insertBtAndFindBestMatch()
1658 const BYTE *const prefixStart = base + dictLimit; in ZSTD_insertBtAndFindBestMatch()
1673 const BYTE *match; in ZSTD_insertBtAndFindBestMatch()
1724 static void ZSTD_updateTree(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iend, const U32 … in ZSTD_updateTree()
1726 const BYTE *const base = zc->base; in ZSTD_updateTree()
1735 static size_t ZSTD_BtFindBestMatch(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, s… in ZSTD_BtFindBestMatch()
1744 …const BYTE *ip, const BYTE *const iLimit, size_t *offsetPtr, const U32 maxNbAttempts, const U32 ma… in ZSTD_BtFindBestMatch_selectMLS()
1755 static void ZSTD_updateTree_extDict(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iend, co… in ZSTD_updateTree_extDict()
1757 const BYTE *const base = zc->base; in ZSTD_updateTree_extDict()
1766 static size_t ZSTD_BtFindBestMatch_extDict(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const i… in ZSTD_BtFindBestMatch_extDict()
1776 const BYTE *ip, const BYTE *const iLimit, size_t *offsetPtr, const U32 maxNbAttempts, in ZSTD_BtFindBestMatch_selectMLS_extDict()
1796 U32 ZSTD_insertAndFindFirstIndex(ZSTD_CCtx *zc, const BYTE *ip, U32 mls) in ZSTD_insertAndFindFirstIndex()
1802 const BYTE *const base = zc->base; in ZSTD_insertAndFindFirstIndex()
1820 …const BYTE *const ip, const BYTE *const iLimit, size_t *offsetPtr, const U32 maxNbAttempts, const … in ZSTD_HcFindBestMatch_generic()
1826 const BYTE *const base = zc->base; in ZSTD_HcFindBestMatch_generic()
1827 const BYTE *const dictBase = zc->dictBase; in ZSTD_HcFindBestMatch_generic()
1829 const BYTE *const prefixStart = base + dictLimit; in ZSTD_HcFindBestMatch_generic()
1830 const BYTE *const dictEnd = dictBase + dictLimit; in ZSTD_HcFindBestMatch_generic()
1841 const BYTE *match; in ZSTD_HcFindBestMatch_generic()
1869 FORCE_INLINE size_t ZSTD_HcFindBestMatch_selectMLS(ZSTD_CCtx *zc, const BYTE *ip, const BYTE *const… in ZSTD_HcFindBestMatch_selectMLS()
1881 …ize_t ZSTD_HcFindBestMatch_extDict_selectMLS(ZSTD_CCtx *zc, const BYTE *ip, const BYTE *const iLim… in ZSTD_HcFindBestMatch_extDict_selectMLS()
1900 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_lazy_generic()
1901 const BYTE *ip = istart; in ZSTD_compressBlock_lazy_generic()
1902 const BYTE *anchor = istart; in ZSTD_compressBlock_lazy_generic()
1903 const BYTE *const iend = istart + srcSize; in ZSTD_compressBlock_lazy_generic()
1904 const BYTE *const ilimit = iend - 8; in ZSTD_compressBlock_lazy_generic()
1905 const BYTE *const base = ctx->base + ctx->dictLimit; in ZSTD_compressBlock_lazy_generic()
1910 …typedef size_t (*searchMax_f)(ZSTD_CCtx * zc, const BYTE *ip, const BYTE *iLimit, size_t *offsetPt… in ZSTD_compressBlock_lazy_generic()
1929 const BYTE *start = ip + 1; in ZSTD_compressBlock_lazy_generic()
2061 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_lazy_extDict_generic()
2062 const BYTE *ip = istart; in ZSTD_compressBlock_lazy_extDict_generic()
2063 const BYTE *anchor = istart; in ZSTD_compressBlock_lazy_extDict_generic()
2064 const BYTE *const iend = istart + srcSize; in ZSTD_compressBlock_lazy_extDict_generic()
2065 const BYTE *const ilimit = iend - 8; in ZSTD_compressBlock_lazy_extDict_generic()
2066 const BYTE *const base = ctx->base; in ZSTD_compressBlock_lazy_extDict_generic()
2069 const BYTE *const prefixStart = base + dictLimit; in ZSTD_compressBlock_lazy_extDict_generic()
2070 const BYTE *const dictBase = ctx->dictBase; in ZSTD_compressBlock_lazy_extDict_generic()
2071 const BYTE *const dictEnd = dictBase + dictLimit; in ZSTD_compressBlock_lazy_extDict_generic()
2072 const BYTE *const dictStart = dictBase + ctx->lowLimit; in ZSTD_compressBlock_lazy_extDict_generic()
2077 …typedef size_t (*searchMax_f)(ZSTD_CCtx * zc, const BYTE *ip, const BYTE *iLimit, size_t *offsetPt… in ZSTD_compressBlock_lazy_extDict_generic()
2090 const BYTE *start = ip + 1; in ZSTD_compressBlock_lazy_extDict_generic()
2096 const BYTE *const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2097 const BYTE *const repMatch = repBase + repIndex; in ZSTD_compressBlock_lazy_extDict_generic()
2101 const BYTE *const repEnd = repIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_lazy_extDict_generic()
2130 const BYTE *const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2131 const BYTE *const repMatch = repBase + repIndex; in ZSTD_compressBlock_lazy_extDict_generic()
2135 const BYTE *const repEnd = repIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_lazy_extDict_generic()
2165 const BYTE *const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2166 const BYTE *const repMatch = repBase + repIndex; in ZSTD_compressBlock_lazy_extDict_generic()
2170 const BYTE *const repEnd = repIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_lazy_extDict_generic()
2199 const BYTE *match = (matchIndex < dictLimit) ? dictBase + matchIndex : base + matchIndex; in ZSTD_compressBlock_lazy_extDict_generic()
2200 const BYTE *const mStart = (matchIndex < dictLimit) ? dictStart : prefixStart; in ZSTD_compressBlock_lazy_extDict_generic()
2220 const BYTE *const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2221 const BYTE *const repMatch = repBase + repIndex; in ZSTD_compressBlock_lazy_extDict_generic()
2225 const BYTE *const repEnd = repIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_lazy_extDict_generic()
2336 const BYTE *const base = zc->base; in ZSTD_compressBlock_internal()
2337 const BYTE *const istart = (const BYTE *)src; in ZSTD_compressBlock_internal()
2359 const BYTE *ip = (const BYTE *)src; in ZSTD_compress_generic()
2360 BYTE *const ostart = (BYTE *)dst; in ZSTD_compress_generic()
2361 BYTE *op = ostart; in ZSTD_compress_generic()
2433 BYTE *const op = (BYTE *)dst; in ZSTD_writeFrameHeader()
2438 BYTE const windowLogByte = (BYTE)((params.cParams.windowLog - ZSTD_WINDOWLOG_ABSOLUTEMIN) << 3); in ZSTD_writeFrameHeader()
2441 …BYTE const frameHeaderDecriptionByte = (BYTE)(dictIDSizeCode + (checksumFlag << 2) + (singleSegmen… in ZSTD_writeFrameHeader()
2456 op[pos] = (BYTE)(dictID); in ZSTD_writeFrameHeader()
2472 op[pos++] = (BYTE)(pledgedSrcSize); in ZSTD_writeFrameHeader()
2492 const BYTE *const ip = (const BYTE *)src; in ZSTD_compressContinue_internal()
2559 const BYTE *const ip = (const BYTE *)src; in ZSTD_loadDictionaryContent()
2560 const BYTE *const iend = ip + srcSize; in ZSTD_loadDictionaryContent()
2628 const BYTE *dictPtr = (const BYTE *)dict; in ZSTD_loadZstdDictionary()
2629 const BYTE *const dictEnd = dictPtr + dictSize; in ZSTD_loadZstdDictionary()
2767 BYTE *const ostart = (BYTE *)dst; in ZSTD_writeEpilogue()
2768 BYTE *op = ostart; in ZSTD_writeEpilogue()
3252 BYTE *const ostart = (BYTE *)(output->dst) + output->pos; in ZSTD_endStream()
3253 BYTE *const oend = (BYTE *)(output->dst) + output->size; in ZSTD_endStream()
3254 BYTE *op = ostart; in ZSTD_endStream()