• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/zstd/lib/compress/

Lines Matching defs:lowLimit

148     U32 lowLimit;           /* below that point, no more valid data */
783 - ZSTD_CURRENT_MAX) /* Maximum beginning lowLimit */
794 window->lowLimit = end;
804 return window.lowLimit < window.dictLimit;
848 * lowLimit > (3<<29) ==> current > 3<<29 + 1<<windowLog
862 * 3. (cctx->lowLimit + 1<<windowLog) < 1<<32:
879 if (window->lowLimit <= correction) window->lowLimit = 1;
880 else window->lowLimit -= correction;
887 /* Ensure that lowLimit and dictLimit didn't underflow. */
888 assert(window->lowLimit <= newCurrent);
891 DEBUGLOG(4, "Correction of 0x%x bytes to lowLimit=0x%x", correction,
892 window->lowLimit);
898 * Updates lowLimit so that:
899 * (srcEnd - base) - lowLimit == maxDist + loadedDictEnd
901 * It ensures index is valid as long as index >= lowLimit.
909 * If loadedDictEndPtr is not NULL, we set it to zero after updating lowLimit.
914 * In normal dict mode, the dictionary lies between lowLimit and dictLimit.
915 * In dictMatchState mode, lowLimit and dictLimit are the same,
946 if (window->lowLimit < newLowLimit) window->lowLimit = newLowLimit;
947 if (window->dictLimit < window->lowLimit) {
948 DEBUGLOG(5, "Update dictLimit to match lowLimit, from %u to %u",
949 (unsigned)window->dictLimit, (unsigned)window->lowLimit);
950 window->dictLimit = window->lowLimit;
998 window->lowLimit = 1; /* it ensures first and later CCtx usages compress the same */
1024 window->lowLimit = window->dictLimit;
1030 if (window->dictLimit - window->lowLimit < HASH_READ_SIZE) window->lowLimit = window->dictLimit; /* too small extDict */
1035 if ( (ip+srcSize > window->dictBase + window->lowLimit)
1039 window->lowLimit = lowLimitMax;
1040 DEBUGLOG(5, "Overlapping extDict and input : new lowLimit = %u", window->lowLimit);
1051 U32 const lowestValid = ms->window.lowLimit;