Skip to content

Commit

Permalink
Fix typo in modmul-proof.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlindholm committed Jan 4, 2021
1 parent f3e0ed5 commit bbb1a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/modmul-proof.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ typedef int64_t i64;
typedef long double ld;

u64 modmul(u64 a, u64 b, u64 c) {
i64 ret = a * b - M * u64(ld(a) * ld(b) / ld(c));
i64 ret = a * b - c * u64(ld(a) * ld(b) / ld(c));
return ret + c * (ret < 0) - c * (ret >= (i64)c);
}
```
Expand Down

0 comments on commit bbb1a53

Please sign in to comment.