Skip to content

Commit

Permalink
Update fp_x64.c
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklonga authored Jul 24, 2018
1 parent eb8123b commit 8f42c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/P751/AMD64/fp_x64.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ void mp_mul(const digit_t* a, const digit_t* b, digit_t* c, const unsigned int n


void rdc_mont(const digit_t* ma, digit_t* mc)
{ // Efficient Montgomery reduction using comba and exploiting the special form of the prime p751.
{ // Montgomery reduction
// mc = ma*R^-1 mod p751x2, where R = 2^768.
// If ma < 2^768*p751, the output mc is in the range [0, 2*p751-1].
// ma is assumed to be in Montgomery representation.
Expand Down Expand Up @@ -858,4 +858,4 @@ void rdc_mont(const digit_t* ma, digit_t* mc)
rdc751_asm(ma, mc);

#endif
}
}

0 comments on commit 8f42c37

Please sign in to comment.