pack takes two uint32 (as uint64 to avoid casting) and packs them into a single uint64 at the leftmost and the rightmost bits respectively. It's up to the caller to ensure that left and right actually fit into 32 bit.
(left, right uint64)
| 312 | // at the leftmost and the rightmost bits respectively. |
| 313 | // It's up to the caller to ensure that left and right actually fit into 32 bit. |
| 314 | func pack(left, right uint64) uint64 { |
| 315 | return left<<32 | right |
| 316 | } |
no outgoing calls