Skip to content

Commit

Permalink
update comment to include WORD_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
sragss committed Feb 7, 2024
1 parent eff8411 commit cdbfe79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derive/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ macro_rules! field_arithmetic {
// in Algorithm 2 of EdMSM: https://eprint.iacr.org/2022/1400.pdf
//
// Cannot use the fast version (algorithm 2) if
// modulus_high_word >= (D-1) / 2 - 1 = (2^64-1)/2 - 1.
// modulus_high_word >= (WORD_SIZE - 1) / 2 - 1 = (2^64 - 1)/2 - 1

if $modulus.0[3] <= (u64::MAX / 2) - 1 {
const N: usize = 4;
Expand Down

0 comments on commit cdbfe79

Please sign in to comment.