zigzagToLong method

Int64 zigzagToLong(
  1. Int64 n
)

Implementation

Int64 zigzagToLong(Int64 n) {
  return n.shiftRightUnsigned(1) ^ -(n & 1);
}