pub fn split(a: u128) -> (u64, u64)
Expand description

split a u128 into two u64 limbs

Examples found in repository?
src/helpers_128bit.rs (line 51)
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
}