Returns the index of a slope for the summary table, limiting to the admissible values. The index is calculated as RD_SUMMARY_OFF plus the maximum exponent, base 2, that yields a value not larger than the slope itself.
If the value to return is lower than 0, 0 is returned. If it is larger than the maximum table index, then the maximum is returned.