pub(crate) fn unextend_sign(val: i64, nbytes: usize) -> u64