prepare for fp2Dbl_{mul,sqr}Pre

update-fork
MITSUNARI Shigeo 4 years ago
parent b19156bf5f
commit b226409e4a
  1. 4
      src/fp_static_code.hpp

@ -38,6 +38,8 @@ void mclx_Fp2_mul(Unit*, const Unit*, const Unit*);
void mclx_Fp2_sqr(Unit*, const Unit*);
void mclx_Fp2_mul2(Unit*, const Unit*);
void mclx_Fp2_mul_xi(Unit*, const Unit*);
void mclx_Fp2Dbl_mulPre(Unit*, const Unit*, const Unit*);
void mclx_Fp2Dbl_sqrPre(Unit*, const Unit*);
void mclx_Fp2Dbl_mul_xi(Unit*, const Unit*);
Unit mclx_Fr_addPre(Unit*, const Unit*, const Unit*);
@ -80,6 +82,8 @@ void setStaticCode(mcl::fp::Op& op)
op.fp2_sqrA_ = mclx_Fp2_sqr;
op.fp2_mul2A_ = mclx_Fp2_mul2;
op.fp2_mul_xiA_ = mclx_Fp2_mul_xi;
op.fp2Dbl_mulPreA_ = 0;//mclx_Fp2Dbl_mulPre;
op.fp2Dbl_sqrPreA_ = 0;//mclx_Fp2Dbl_sqrPre;
op.fp2Dbl_mul_xiA_ = mclx_Fp2Dbl_mul_xi;
op.fp_preInv = mclx_Fp_preInv;
} else {

Loading…
Cancel
Save