mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
convert most variable swaps to mem swaps
This commit is contained in:
@@ -139,9 +139,7 @@ impl ModulusPoly {
|
||||
let mut smallerCoefficients = &self.coefficients;
|
||||
let mut largerCoefficients = &other.coefficients;
|
||||
if smallerCoefficients.len() > largerCoefficients.len() {
|
||||
let temp = smallerCoefficients;
|
||||
smallerCoefficients = largerCoefficients;
|
||||
largerCoefficients = temp;
|
||||
std::mem::swap(&mut smallerCoefficients, &mut largerCoefficients);
|
||||
}
|
||||
let mut sumDiff = vec![0032; largerCoefficients.len()];
|
||||
let lengthDiff = largerCoefficients.len() - smallerCoefficients.len();
|
||||
|
||||
Reference in New Issue
Block a user