rasn 0.28.11

A safe no_std ASN.1 codec framework.
Documentation
1
2
3
4
//! Module for different number-related functions which are used in the library.
pub(crate) const fn log2(x: i128) -> u32 {
    i128::BITS - (x - 1).leading_zeros()
}