longToZigzag method

Int64 longToZigzag(
  1. Int64 l
)

Implementation

Int64 longToZigzag(Int64 l) {
  return (l << 1) ^ (l >> 63);
}