Skip to main content

ceil_log2

Function ceil_log2 

Source
pub fn ceil_log2(x: u32) -> i32
Expand description

Computes ceil(log2(x)); returns the minimum k such that 2^k >= x.

C: int luaO_ceillog2 (unsigned int x)