Lines Matching defs:ratio
107 * The compression ratio is checked at the first end of a packet
132 u_int ratio; /* recent compression ratio */
133 u_int checkpoint; /* when to next check the ratio */
239 db->ratio = 0;
248 * Compute the compression ratio using fixed-point arithmetic
252 * watch only the local compression ratio.
256 * must compute the same ratio.
265 /* age the ratio by limiting the size of the counts */
275 /* Reset the dictionary only if the ratio is worse,
286 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) {
290 db->ratio = new_ratio;
313 stats->ratio = db->in_count;
315 if (stats->ratio <= 0x7fffff)
316 stats->ratio <<= 8;
320 stats->ratio /= out;