Home
last modified time | relevance | path

Searched refs:offset_2 (Results 1 – 4 of 4) sorted by relevance

/freebsd-13-stable/sys/contrib/zstd/lib/compress/
HDzstd_fast.c68 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_generic() local
78 if (offset_2 > maxRep) offsetSaved = offset_2, offset_2 = 0; in ZSTD_compressBlock_fast_generic()
141 offset_2 = offset_1; in ZSTD_compressBlock_fast_generic()
163 if (offset_2 > 0) { /* offset_2==0 means offset_2 is invalidated */ in ZSTD_compressBlock_fast_generic()
164 while ( (ip0 <= ilimit) && (MEM_read32(ip0) == MEM_read32(ip0 - offset_2)) ) { in ZSTD_compressBlock_fast_generic()
166 size_t const rLength = ZSTD_count(ip0+4, ip0+4-offset_2, iend) + 4; in ZSTD_compressBlock_fast_generic()
167 …{ U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; } /* swap offset_2 <=> offs… in ZSTD_compressBlock_fast_generic()
179 rep[1] = offset_2 ? offset_2 : offsetSaved; in ZSTD_compressBlock_fast_generic()
224 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_dictMatchState_generic() local
255 assert(offset_2 <= dictAndPrefixLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
[all …]
HDzstd_double_fast.c71 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_generic() local
114 if (offset_2 > maxRep) offsetSaved = offset_2, offset_2 = 0; in ZSTD_compressBlock_doubleFast_generic()
121 assert(offset_2 <= dictAndPrefixLength); in ZSTD_compressBlock_doubleFast_generic()
250 offset_2 = offset_1; in ZSTD_compressBlock_doubleFast_generic()
274 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_doubleFast_generic()
283 …U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_doubleFast_generic()
296 && ( (offset_2>0) in ZSTD_compressBlock_doubleFast_generic()
297 & (MEM_read32(ip) == MEM_read32(ip - offset_2)) )) { in ZSTD_compressBlock_doubleFast_generic()
299 size_t const rLength = ZSTD_count(ip+4, ip+4-offset_2, iend) + 4; in ZSTD_compressBlock_doubleFast_generic()
300 …U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; /* swap offset_2 <=> offset_… in ZSTD_compressBlock_doubleFast_generic()
[all …]
HDzstd_lazy.c901 U32 offset_1 = rep[0], offset_2 = rep[1], savedOffset=0; in ZSTD_compressBlock_lazy_generic() local
926 if (offset_2 > maxRep) savedOffset = offset_2, offset_2 = 0; in ZSTD_compressBlock_lazy_generic()
933 assert(offset_2 <= dictAndPrefixLength); in ZSTD_compressBlock_lazy_generic()
1071 offset_2 = offset_1; offset_1 = (U32)(offset - ZSTD_REP_MOVE); in ZSTD_compressBlock_lazy_generic()
1084 U32 const repIndex = current2 - offset_2; in ZSTD_compressBlock_lazy_generic()
1092 … offset = offset_2; offset_2 = offset_1; offset_1 = (U32)offset; /* swap offset_2 <=> offset_1 */ in ZSTD_compressBlock_lazy_generic()
1103 while ( ((ip <= ilimit) & (offset_2>0)) in ZSTD_compressBlock_lazy_generic()
1104 && (MEM_read32(ip) == MEM_read32(ip - offset_2)) ) { in ZSTD_compressBlock_lazy_generic()
1106 matchLength = ZSTD_count(ip+4, ip+4-offset_2, iend) + 4; in ZSTD_compressBlock_lazy_generic()
1107 offset = offset_2; offset_2 = offset_1; offset_1 = (U32)offset; /* swap repcodes */ in ZSTD_compressBlock_lazy_generic()
[all …]
/freebsd-13-stable/sys/contrib/openzfs/module/zstd/lib/
HDzstd.c17433 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_generic() local
17476 if (offset_2 > maxRep) offsetSaved = offset_2, offset_2 = 0; in ZSTD_compressBlock_doubleFast_generic()
17483 assert(offset_2 <= dictAndPrefixLength); in ZSTD_compressBlock_doubleFast_generic()
17612 offset_2 = offset_1; in ZSTD_compressBlock_doubleFast_generic()
17636 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_doubleFast_generic()
17645 …U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_doubleFast_generic()
17658 && ( (offset_2>0) in ZSTD_compressBlock_doubleFast_generic()
17659 & (MEM_read32(ip) == MEM_read32(ip - offset_2)) )) { in ZSTD_compressBlock_doubleFast_generic()
17661 size_t const rLength = ZSTD_count(ip+4, ip+4-offset_2, iend) + 4; in ZSTD_compressBlock_doubleFast_generic()
17662 …U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; /* swap offset_2 <=> offset_… in ZSTD_compressBlock_doubleFast_generic()
[all …]