Function smartnoise_validator::components::snapping_mechanism::get_smallest_greater_or_eq_power_of_two[][src]

pub fn get_smallest_greater_or_eq_power_of_two(x: f64) -> Result<i16>

Finds the smallest integer m such that 2^m is equal to or greater than x.

Arguments

Returns

The found power of two