unpack takes an uint64 and returns two uint32 (as uint64) comprised of the leftmost and the rightmost bits respectively.
(in uint64)
| 305 | // unpack takes an uint64 and returns two uint32 (as uint64) comprised of the leftmost |
| 306 | // and the rightmost bits respectively. |
| 307 | func unpack(in uint64) (uint64, uint64) { |
| 308 | return in >> 32, in & 0xffffffff |
| 309 | } |
| 310 | |
| 311 | // pack takes two uint32 (as uint64 to avoid casting) and packs them into a single uint64 |
| 312 | // at the leftmost and the rightmost bits respectively. |
no outgoing calls