pub fn zigzag(x: i64) -> u64
Map a signed integer to an unsigned one with small magnitudes near zero (for varint).