SHARE
TWEET

Untitled

a guest Aug 19th, 2019 58 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top