Java Utililty Methods Zigzag Decode

List of utility methods to do Zigzag Decode

Description

The list of methods to do Zigzag Decode are organized into topic(s).

Method

intzigzagDecode(int encoded)
zigzag Decode
return (encoded >>> 1) ^ (-(encoded & 1));
intzigzagDecode(int encoded)
zigzag Decode
if ((encoded & 1) == 0) { 
    return (encoded >>> 1);
return (encoded >>> 1) ^ -1;
intzigZagDecode(int i)
Decode an int previously encoded with #zigZagEncode(int) .
return ((i >>> 1) ^ -(i & 1));
int[]zigzagDecode(int[] src)
zigzag Decode
int[] dst = new int[64];
for (int i = 0; i < naturalOrder.length; i++) {
    dst[naturalOrder[i]] = src[i];
return dst;
longzigZagDecode(long n)
Zig-zag decode.
return ((n >>> 1) ^ -(n & 1));
longzigzagDecode(long val)
zigzag decode the given value
return (val >>> 1) ^ -(val & 1);