pub(crate) fn extend_sign128(val: u128, nbytes: usize) -> i128