Lines Matching refs:histogram

263   histogram_value histogram;  in tree_divmod_fixed_value_transform()  local
289 for (histogram = ann->histograms; histogram; histogram = histogram->hvalue.next) in tree_divmod_fixed_value_transform()
290 if (histogram->type == HIST_TYPE_SINGLE_VALUE) in tree_divmod_fixed_value_transform()
293 if (!histogram) in tree_divmod_fixed_value_transform()
296 value = histogram->hvalue.value; in tree_divmod_fixed_value_transform()
297 val = histogram->hvalue.counters[0]; in tree_divmod_fixed_value_transform()
298 count = histogram->hvalue.counters[1]; in tree_divmod_fixed_value_transform()
299 all = histogram->hvalue.counters[2]; in tree_divmod_fixed_value_transform()
430 histogram_value histogram; in tree_mod_pow2_value_transform() local
456 for (histogram = ann->histograms; histogram; histogram = histogram->hvalue.next) in tree_mod_pow2_value_transform()
457 if (histogram->type == HIST_TYPE_POW2) in tree_mod_pow2_value_transform()
460 if (!histogram) in tree_mod_pow2_value_transform()
463 value = histogram->hvalue.value; in tree_mod_pow2_value_transform()
464 wrong_values = histogram->hvalue.counters[0]; in tree_mod_pow2_value_transform()
465 count = histogram->hvalue.counters[1]; in tree_mod_pow2_value_transform()
612 histogram_value histogram; in tree_mod_subtract_transform() local
639 for (histogram = ann->histograms; histogram; histogram = histogram->hvalue.next) in tree_mod_subtract_transform()
640 if (histogram->type == HIST_TYPE_INTERVAL) in tree_mod_subtract_transform()
643 if (!histogram) in tree_mod_subtract_transform()
646 value = histogram->hvalue.value; in tree_mod_subtract_transform()
649 for (i = 0; i < histogram->hdata.intvl.steps; i++) in tree_mod_subtract_transform()
650 all += histogram->hvalue.counters[i]; in tree_mod_subtract_transform()
652 wrong_values += histogram->hvalue.counters[i]; in tree_mod_subtract_transform()
653 wrong_values += histogram->hvalue.counters[i+1]; in tree_mod_subtract_transform()
663 for (i = 0; i < histogram->hdata.intvl.steps; i++) in tree_mod_subtract_transform()
665 count += histogram->hvalue.counters[i]; in tree_mod_subtract_transform()
669 if (i == histogram->hdata.intvl.steps) in tree_mod_subtract_transform()
679 prob1 = (histogram->hvalue.counters[0] * REG_BR_PROB_BASE + all / 2) / all; in tree_mod_subtract_transform()
680 prob2 = (histogram->hvalue.counters[1] * REG_BR_PROB_BASE + all / 2) / all; in tree_mod_subtract_transform()
685 histogram->hvalue.counters[0], in tree_mod_subtract_transform()
686 histogram->hvalue.counters[1], all); in tree_mod_subtract_transform()