Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f22(x):
- a = x & 0x1f
- b = x & 0x7fe0
- c = x & 0x7ff8000
- d = x & 0xf8000000
- b <<= 5
- c <<= 5
- d >>= 22
- x = a + b + c + d
- return x
- # print(f22(0xf2f4d8d1))
- # print(hex(int(str(11111),2)))
- # print(hex(int(str(111111111100000),2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement