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 8f42c37 commit 8ecf742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/P503/AMD64/fp_x64.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,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 p503.
{ // Montgomery reduction
// mc = ma*R^-1 mod p503x2, where R = 2^512.
// If ma < 2^512*p503, the output mc is in the range [0, 2*p503-1].
// ma is assumed to be in Montgomery representation.
Expand Down Expand Up @@ -520,4 +520,4 @@ void rdc_mont(const digit_t* ma, digit_t* mc)
rdc503_asm(ma, mc);

#endif
}
}

0 comments on commit 8ecf742

Please sign in to comment.