Lines Matching defs:ratio
71 * The compression ratio is checked at the first end of a packet
96 u_int ratio; /* recent compression ratio */
97 u_int checkpoint; /* when to next check the ratio */
185 db->ratio = 0;
194 * Compute the compression ratio using fixed-point arithmetic
198 * watch only the local compression ratio.
202 * must compute the same ratio.
211 /* age the ratio by limiting the size of the counts */
221 /* Reset the dictionary only if the ratio is worse,
232 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) {
236 db->ratio = new_ratio;
259 stats->ratio = db->in_count;
261 if (stats->ratio <= 0x7fffff)
262 stats->ratio <<= 8;
266 stats->ratio /= out;