leading_ones
leading_ones(x::Integer) -> Integer
Number of ones leading the binary representation of x
.
julia> leading_ones(UInt32(2 ^ 32 - 2))
31
Examples
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.