Guest User

Untitled

a guest
Aug 19th, 2019
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2. let x: u64 = (1 << (63-1))-1;
  3. let x2: u64 = (1 << (63-0))-1;
  4.  
  5. println!("x: {:064b}", x);
  6. println!("leading_zeros: {}\n", x.leading_zeros());
  7.  
  8. println!("x: {:064b}", x2);
  9. println!("leading_zeros: {}", x2.leading_zeros());
  10. }
RAW Paste Data