zigZagEncode static method

int zigZagEncode(
  1. int val
)

Implementation

static int zigZagEncode(int val) {
  return (val << 1) ^ (val >> 31);
}