pub fn zagzig(n: u32) -> i32
Applies zigzag decoding to transform an unsigned integer into a signed integer.