Function normalize [src]

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]

Prototype

pub fn normalize(r: *Mutable, length: usize) void

Parameters

r: *Mutablelength: usize

Source

pub fn normalize(r: *Mutable, length: usize) void { r.len = llnormalize(r.limbs[0..length]); }