From b226409e4aee68ea3090c78b1f88ae1b2a7a3a70 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 18 Feb 2021 10:33:33 +0900 Subject: [PATCH] prepare for fp2Dbl_{mul,sqr}Pre --- src/fp_static_code.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fp_static_code.hpp b/src/fp_static_code.hpp index ef27f1b..bb7ab4b 100644 --- a/src/fp_static_code.hpp +++ b/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 {