pub fn split(a: u128) -> (u64, u64)
split a u128 into two u64 limbs
50 51 52 53 54 55 56 57
pub fn to_big_uint(x: u128) -> biguint::BigUint { let (xh, xl) = split(x); let (xhh, xhl) = biguint::split(xh); let (xlh, xll) = biguint::split(xl); let mut n = biguint::BigUint::from_limbs(&[xhh, xhl, xlh, xll]); n.lstrip(); n }