[][src]Function sffs::clz

pub fn clz<T: Clz>(n: T) -> usize

Counts the number of zero bits preceding the most significant one bit.

Examples

assert_eq!(6, sffs::clz(0b00000010u8));