mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-09 07:21:30 +01:00
Tweaks
This commit is contained in:
@@ -41,7 +41,7 @@ impl Fp2Config for Fq2Config {
|
|||||||
*y += x;
|
*y += x;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mul_fp_by_nonresidue_in_place_and_add(y: &mut Self::Fp, x: &Self::Fp) {
|
fn mul_fp_by_nonresidue_and_add(y: &mut Self::Fp, x: &Self::Fp) {
|
||||||
let mut original = *y;
|
let mut original = *y;
|
||||||
original.double_in_place().double_in_place();
|
original.double_in_place().double_in_place();
|
||||||
original += &*y;
|
original += &*y;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ impl Fp2Config for Fq2Config {
|
|||||||
*y = *x;
|
*y = *x;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mul_fp_by_nonresidue_in_place_and_add(y: &mut Self::Fp, x: &Self::Fp) {
|
fn mul_fp_by_nonresidue_and_add(y: &mut Self::Fp, x: &Self::Fp) {
|
||||||
y.neg_in_place();
|
y.neg_in_place();
|
||||||
*y += x;
|
*y += x;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user