Home
last modified time | relevance | path

Searched refs:bestSegment (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dcover.c422 COVER_segment_t bestSegment = {0, 0, 0}; in COVER_selectSegment() local
463 if (activeSegment.score > bestSegment.score) { in COVER_selectSegment()
464 bestSegment = activeSegment; in COVER_selectSegment()
469 U32 newBegin = bestSegment.end; in COVER_selectSegment()
470 U32 newEnd = bestSegment.begin; in COVER_selectSegment()
472 for (pos = bestSegment.begin; pos != bestSegment.end; ++pos) { in COVER_selectSegment()
479 bestSegment.begin = newBegin; in COVER_selectSegment()
480 bestSegment.end = newEnd; in COVER_selectSegment()
485 for (pos = bestSegment.begin; pos != bestSegment.end; ++pos) { in COVER_selectSegment()
489 return bestSegment; in COVER_selectSegment()
H A Dfastcover.c167 COVER_segment_t bestSegment = {0, 0, 0}; in FASTCOVER_selectSegment() local
204 if (activeSegment.score > bestSegment.score) { in FASTCOVER_selectSegment()
205 bestSegment = activeSegment; in FASTCOVER_selectSegment()
219 for (pos = bestSegment.begin; pos != bestSegment.end; ++pos) { in FASTCOVER_selectSegment()
225 return bestSegment; in FASTCOVER_selectSegment()