Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Oct 1, 2024
1 parent 8b972dc commit d727c5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions curves/src/pasta/wasm_friendly/backend9.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ fn gte_modulus<FpC: FpConstants>(x: &B) -> bool {
true
}

/// TODO performance ideas to test:
/// - unroll loops
/// - introduce locals for a[i] instead of accessing memory multiple times
/// - only do 1 carry pass at the end, by proving properties of greater-than on uncarried result
/// - use cheaper, approximate greater-than check a[8] > Fp::MODULUS[8]
// TODO performance ideas to test:
// - unroll loops
// - introduce locals for a[i] instead of accessing memory multiple times
// - only do 1 carry pass at the end, by proving properties of greater-than on uncarried result
// - use cheaper, approximate greater-than check a[8] > Fp::MODULUS[8]
pub fn add_assign<FpC: FpConstants>(x: &mut B, y: &B) {
let mut tmp: u32;
let mut carry: i32 = 0;
Expand Down

0 comments on commit d727c5f

Please sign in to comment.