Crate gate_calc_log_bits

Crate gate_calc_log_bits 

Source
Expand description

Simple library that provide numeric utility used in Gate Project.

Functionsยง

calc_log_bits
Calculate ceil(log(N)). It return system sized unsigned result.
calc_log_bits_u32
Calculate ceil(log(N)). It return 32-bit unsigned result.
calc_log_bits_u64
Calculate ceil(log(N)). It return system sized unsigned result.
calc_log_bits_u128
Calculate ceil(log(N)). It return system sized unsigned result.