Auto merge of #235 - matklad:minor-corrections, r=cuviper

Minor, style and comment typo

Just a couple of super minor cosmetic corrections.
This commit is contained in:
Homu 2016-10-06 01:30:42 +09:00
commit b6db1eace9
1 changed files with 2 additions and 2 deletions

View File

@ -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)