pub fn normalize(r: *Mutable, length: usize) void
Normalize a possible sequence of leading zeros.
[1, 2, 3, 4, 0] -> [1, 2, 3, 4] [1, 2, 0, 0, 0] -> [1, 2] [0, 0, 0, 0, 0] -> [0]
r: *Mutable
length: usize
2133 2134 2135
pub fn normalize(r: *Mutable, length: usize) void { r.len = llnormalize(r.limbs[0..length]); }
Normalize a possible sequence of leading zeros.
[1, 2, 3, 4, 0] -> [1, 2, 3, 4] [1, 2, 0, 0, 0] -> [1, 2] [0, 0, 0, 0, 0] -> [0]