Skip to main content

pow2_factor

Function pow2_factor 

Source
fn pow2_factor(c: u64) -> Option<u64>
Expand description

Largest power-of-two factor of a non-negative constant (the alignment implied by multiplying by c): c itself if it is a power of two, otherwise 2^trailing_zeros(c).