Lines Matching defs:ratio
75 * The compression ratio is checked at the first end of a packet
100 u_int ratio; /* recent compression ratio */
101 u_int checkpoint; /* when to next check the ratio */
184 #define CHECK_GAP 10000 /* Ratio check interval */
205 db->ratio = 0;
214 * Compute the compression ratio using fixed-point arithmetic
218 * watch only the local compression ratio.
222 * must compute the same ratio.
230 /* age the ratio by limiting the size of the counts */
240 /* Reset the dictionary only if the ratio is worse,
251 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) {
255 db->ratio = new_ratio;
276 stats->ratio = db->in_count;
278 if (stats->ratio <= 0x7fffff)
279 stats->ratio <<= 8;
283 stats->ratio /= out;