Home
last modified time | relevance | path

Searched refs:mainDist (Results 1 – 3 of 3) sorted by relevance

/external/xz-java/src/org/tukaani/xz/lzma/
DLZMAEncoderFast.java87 int mainDist = 0; in getNextSymbol() local
91 mainDist = matches.dist[matches.count - 1]; in getNextSymbol()
94 back = mainDist + REPS; in getNextSymbol()
101 if (!changePair(matches.dist[matches.count - 2], mainDist)) in getNextSymbol()
106 mainDist = matches.dist[matches.count - 1]; in getNextSymbol()
109 if (mainLen == MATCH_LEN_MIN && mainDist >= 0x80) in getNextSymbol()
115 || (bestRepLen + 2 >= mainLen && mainDist >= (1 << 9)) in getNextSymbol()
116 || (bestRepLen + 3 >= mainLen && mainDist >= (1 << 15))) { in getNextSymbol()
134 if ((newLen >= mainLen && newDist < mainDist) in getNextSymbol()
136 && !changePair(mainDist, newDist)) in getNextSymbol()
[all …]
DLZMAEncoderNormal.java151 int mainDist = 0; in getNextSymbol() local
154 mainDist = matches.dist[matches.count - 1]; in getNextSymbol()
158 back = mainDist + REPS; in getNextSymbol()
/external/lzma/C/
DLzmaEnc.c1867 UInt32 numAvail, mainDist; in GetOptimumFast() local
1917 mainDist = 0; /* for GCC */ in GetOptimumFast()
1921 mainDist = p->matches[(size_t)numPairs - 1]; in GetOptimumFast()
1928 if (!ChangePair(dist2, mainDist)) in GetOptimumFast()
1932 mainDist = dist2; in GetOptimumFast()
1934 if (mainLen == 2 && mainDist >= 0x80) in GetOptimumFast()
1940 || (repLen + 2 >= mainLen && mainDist >= (1 << 9)) in GetOptimumFast()
1941 || (repLen + 3 >= mainLen && mainDist >= (1 << 15))) in GetOptimumFast()
1958 if ( (len1 >= mainLen && newDist < mainDist) in GetOptimumFast()
1959 || (len1 == mainLen + 1 && !ChangePair(mainDist, newDist)) in GetOptimumFast()
[all …]