(i)
return (i >> 1) ^ (~0)
Zig-zag decodes an integer value.
Zig-zag decodes an integer value.
Zig - zag decodes an integer value .
def decode_signed_varint(i):
    """Zig-zag decodes an integer value.
    """

    if not i & 1:
        return i >> 1
    return (i >> 1) ^ (~0)
def decode_signed_varint ( i ) : if not i & 1 : return i >> 1 return ( i >> 1 ) ^ ( ~ 0 )