fn compute_checksum<T: Copy>(v: &T) -> u8