Lines Matching refs:BYTE
100 static void LZ4HC_init_internal (LZ4HC_CCtx_internal* hc4, const BYTE* start)
120 LZ4_FORCE_INLINE void LZ4HC_Insert (LZ4HC_CCtx_internal* hc4, const BYTE* ip)
124 const BYTE* const prefixPtr = hc4->prefixStart;
146 int LZ4HC_countBack(const BYTE* const ip, const BYTE* const match,
147 const BYTE* const iMin, const BYTE* const mMin)
177 LZ4HC_countPattern(const BYTE* ip, const BYTE* const iEnd, U32 const pattern32)
179 const BYTE* const iStart = ip;
192 while ((ip<iEnd) && (*ip == (BYTE)patternByte)) {
198 BYTE const byte = (BYTE)(pattern >> bitOffset);
210 LZ4HC_reverseCountPattern(const BYTE* ip, const BYTE* const iLow, U32 pattern)
212 const BYTE* const iStart = ip;
218 { const BYTE* bytePtr = (const BYTE*)(&pattern) + 3; /* works for any endianness */
242 const BYTE* const ip,
243 const BYTE* const iLowLimit, const BYTE* const iHighLimit,
245 const BYTE** matchpos,
246 const BYTE** startpos,
255 const BYTE* const prefixPtr = hc4->prefixStart;
260 const BYTE* const dictStart = hc4->dictStart;
262 const BYTE* const dictEnd = dictStart + prefixIdx - dictIdx;
285 const BYTE* const matchPtr = prefixPtr + matchIndex - prefixIdx;
299 const BYTE* const matchPtr = dictStart + (matchIndex - dictIdx);
304 const BYTE* vLimit = ip + (prefixIdx - matchIndex);
355 const BYTE* const matchPtr = (extDict ? dictStart - dictIdx : prefixPtr - prefixIdx) + matchCandidateIdx;
357 const BYTE* const iLimit = extDict ? dictEnd : iHighLimit;
363 { const BYTE* const lowestMatchPtr = extDict ? dictStart : prefixPtr;
425 const BYTE* const matchPtr = dictCtx->prefixStart - dictCtx->dictLimit + dictMatchIndex;
430 const BYTE* vLimit = ip + (dictEndOffset - dictMatchIndex);
451 const BYTE* const ip, const BYTE* const iLimit,
452 const BYTE** matchpos,
457 const BYTE* uselessPtr = ip;
468 const BYTE** _ip,
469 BYTE** _op,
470 const BYTE** _anchor,
472 const BYTE* const match,
474 BYTE* oend)
481 BYTE* const token = op++;
484 static const BYTE* start = NULL;
513 *op++ = (BYTE)len;
515 *token = (BYTE)(length << ML_BITS);
538 *op++ = (BYTE)length;
540 *token += (BYTE)(length);
567 const BYTE* ip = (const BYTE*) source;
568 const BYTE* anchor = ip;
569 const BYTE* const iend = ip + inputSize;
570 const BYTE* const mflimit = iend - MFLIMIT;
571 const BYTE* const matchlimit = (iend - LASTLITERALS);
573 BYTE* optr = (BYTE*) dest;
574 BYTE* op = (BYTE*) dest;
575 BYTE* oend = op + maxOutputSize;
578 const BYTE* start0;
579 const BYTE* ref0;
580 const BYTE* ref = NULL;
581 const BYTE* start2 = NULL;
582 const BYTE* ref2 = NULL;
583 const BYTE* start3 = NULL;
584 const BYTE* ref3 = NULL;
754 *op++ = (BYTE) accumulator;
756 *op++ = (BYTE)(lastRunSize << ML_BITS);
772 BYTE* const maxLitPos = oend - 3; /* 2 for offset, 1 for token */
863 static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock);
898 LZ4HC_setExternalDict(ctx, (const BYTE *)src);
944 LZ4HC_init_internal (ctx, (const BYTE*)src);
980 LZ4HC_init_internal(&ctx->internal_donotuse, (const BYTE*) source);
1081 LZ4HC_init_internal (ctxPtr, (const BYTE*)dictionary);
1082 ctxPtr->end = (const BYTE*)dictionary + dictSize;
1093 static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock)
1122 if (ctxPtr->prefixStart == NULL) LZ4HC_init_internal (ctxPtr, (const BYTE*) src);
1132 if ((const BYTE*)src != ctxPtr->end)
1133 LZ4HC_setExternalDict(ctxPtr, (const BYTE*)src);
1136 { const BYTE* sourceEnd = (const BYTE*) src + *srcSizePtr;
1137 const BYTE* const dictBegin = ctxPtr->dictStart;
1138 const BYTE* const dictEnd = ctxPtr->dictStart + (ctxPtr->dictLimit - ctxPtr->lowLimit);
1139 if ((sourceEnd > dictBegin) && ((const BYTE*)src < dictEnd)) {
1184 streamPtr->end = (const BYTE*)safeBuffer + dictSize;
1224 LZ4HC_init_internal (&hc4->internal_donotuse, (const BYTE*)inputBuffer);
1233 LZ4HC_init_internal (&hc4->internal_donotuse, (const BYTE*)inputBuffer);
1258 const BYTE* bufferStart = ctx->internal_donotuse.prefixStart - ctx->internal_donotuse.dictLimit + ctx->internal_donotuse.lowLimit;
1309 const BYTE* ip, const BYTE* const iHighLimit,
1315 const BYTE* matchPtr = NULL;
1350 const BYTE* ip = (const BYTE*) source;
1351 const BYTE* anchor = ip;
1352 const BYTE* const iend = ip + *srcSizePtr;
1353 const BYTE* const mflimit = iend - MFLIMIT;
1354 const BYTE* const matchlimit = iend - LASTLITERALS;
1355 BYTE* op = (BYTE*) dst;
1356 BYTE* opSaved = (BYTE*) dst;
1357 BYTE* oend = op + dstCapacity;
1359 const BYTE* ovref = NULL;
1382 const BYTE* const matchPos = ip - firstMatch.off;
1430 const BYTE* const curPtr = ip + cur;
1590 *op++ = (BYTE) accumulator;
1592 *op++ = (BYTE)(lastRunSize << ML_BITS);
1609 BYTE* const maxLitPos = oend - 3; /* 2 for offset, 1 for token */