Skip to main content
highest_bit
bit_
manipulation
0.1.0
bit_manipulation
Function
highest_
bit
Copy item path
Source
pub fn highest_bit(x:
u64
) ->
u64
Expand description
Mask with the highest set bit. Returns 0 if
x == 0
.