< prev index next >

src/hotspot/share/opto/parse2.cpp

Print this page
rev 56944 : imported patch 8233702-function-to-clamp-value-to-range

*** 603,613 **** assert(taken_cnt <= total_cnt, ""); if (total_cnt == 0) { return PROB_FAIR; } float p = taken_cnt / total_cnt; ! return MIN2(MAX2(p, PROB_MIN), PROB_MAX); } static float if_cnt(float cnt) { if (cnt == 0) { return COUNT_UNKNOWN; --- 603,613 ---- assert(taken_cnt <= total_cnt, ""); if (total_cnt == 0) { return PROB_FAIR; } float p = taken_cnt / total_cnt; ! return clamp(p, PROB_MIN, PROB_MAX); } static float if_cnt(float cnt) { if (cnt == 0) { return COUNT_UNKNOWN;
< prev index next >