Function encodeZigzagLong

Perform zig-zag encoding for a 64-bit long.

ulong encodeZigzagLong (
  long input
) pure nothrow @safe;