8000 Fixed a typo in equation explanation part (#447) · cp-algorithms/cp-algorithms@b7d7460 · GitHub
[go: up one dir, main page]

Skip to content

Commit b7d7460

Browse files
Prakash-Jha-Devjakobkogler
authored andcommitted
Fixed a typo in equation explanation part (#447)
1 parent 037a5a4 commit b7d7460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/montgomery_multiplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct u256 {
118118
u64 a = x >> 64, b = x;
119119
u64 c = y >> 64, d = y;
120120
// (a*2^64 + b) * (c*2^64 + d) =
121-
// (a + c) * 2^128 + (a*d + b*c)*2^64 + (b*d)
121+
// (a*c) * 2^128 + (a*d + b*c)*2^64 + (b*d)
122122
u128 ac = (u128)a * c;
123123
u128 ad = (u128)a * d;
124124
u128 bc = (u128)b * c;

0 commit comments

Comments
 (0)
0