def _compute_rc_cost(self, curve_params, current_pool, resource_count, rc_regen):
    'Helper function for computing the RC costs'
    num = int(rc_regen)
    num *= int(curve_params['coeff_a'])
    num = (int(num) >> int(curve_params['shift']))
    num += 1
    num *= int(resource_count)
    denom = int(curve_params['coeff_b'])
    if (int(current_pool) > 0):
        denom += int(current_pool)
    num_denom = (num / denom)
    return (int(num_denom) + 1)
Helper function for computing the RC costs
def _compute_rc_cost(self, curve_params, current_pool, resource_count, rc_regen):
    
    num = int(rc_regen)
    num *= int(curve_params['coeff_a'])
    num = (int(num) >> int(curve_params['shift']))
    num += 1
    num *= int(resource_count)
    denom = int(curve_params['coeff_b'])
    if (int(current_pool) > 0):
        denom += int(current_pool)
    num_denom = (num / denom)
    return (int(num_denom) + 1)