Function decodeZigzagLong
Perform zig-zag decoding for a 64-bit long.
long decodeZigzagLong
(
ulong input
) pure nothrow @safe;
Example
assert(decodeZigzagLong(0) == 0);
assert(decodeZigzagLong(1) == -1);
assert(decodeZigzagLong(2) == 1);
assert(decodeZigzagLong(3) == -2);
assert(decodeZigzagLong(4294967294) == 2147483647);
assert(decodeZigzagLong(4294967295) == -2147483648);
assert(decodeZigzagLong(18446744073709551614) == 9223372036854775807);
assert(decodeZigzagLong(18446744073709551615) == -9223372036854775808);