From ec6ce78458efcc557454928bafbb8aa3bdc0105c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 5 Oct 2016 18:47:30 +0300 Subject: [PATCH] Minor, style and comment typo --- bigint/src/algorithms.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigint/src/algorithms.rs b/bigint/src/algorithms.rs index 050e0b8..0afd6b1 100644 --- a/bigint/src/algorithms.rs +++ b/bigint/src/algorithms.rs @@ -270,7 +270,7 @@ fn mac3(acc: &mut [BigDigit], b: &[BigDigit], c: &[BigDigit]) { * Let p0 = x0 * y0 and p2 = x1 * y1: * * x * y = p0 - * + (x0 * y1 + x1 * p0) * b + * + (x0 * y1 + x1 * y0) * b * + p2 * b^2 * * The real trick is that middle term: @@ -343,7 +343,7 @@ fn mac3(acc: &mut [BigDigit], b: &[BigDigit], c: &[BigDigit]) { mac3(&mut p.data[..], x0, y0); p = p.normalize(); - add2(&mut acc[..], &p.data[..]); + add2(&mut acc[..], &p.data[..]); add2(&mut acc[b..], &p.data[..]); // p1 = (x1 - x0) * (y1 - y0)