Advertisement
spacerose

2_2

Jun 2nd, 2021
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def f22(x):
  2.     a = x & 0x1f
  3.  
  4.     b = x & 0x7fe0
  5.     c = x & 0x7ff8000
  6.     d = x & 0xf8000000
  7.     b <<= 5
  8.     c <<= 5
  9.     d >>= 22
  10.     x = a + b + c + d
  11.     return x
  12.  
  13.  
  14. # print(f22(0xf2f4d8d1))
  15. # print(hex(int(str(11111),2)))
  16. # print(hex(int(str(111111111100000),2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement