From f3f27d5b0d5299da8486c6248541b1248d17c8fa Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Fri, 19 Jun 2020 15:24:11 +0900 Subject: [PATCH] maxMulVecNGLV can be redefined --- include/mcl/op.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/mcl/op.hpp b/include/mcl/op.hpp index 958d438..56db496 100644 --- a/include/mcl/op.hpp +++ b/include/mcl/op.hpp @@ -118,7 +118,11 @@ const size_t maxUnitSize = (MCL_MAX_BIT_SIZE + UnitBitSize - 1) / UnitBitSize; #define MCL_MAX_UNIT_SIZE ((MCL_MAX_BIT_SIZE + MCL_UNIT_BIT_SIZE - 1) / MCL_UNIT_BIT_SIZE) const size_t maxMulVecN = 32; // inner loop of mulVec -const size_t maxMulVecNGLV = 16; // inner loop of mulVec with GLV + +#ifndef MCL_MAX_MUL_VEC_NGLV + #define MCL_MAX_MUL_VEC_NGLV 16 +#endif +const size_t maxMulVecNGLV = MCL_MAX_MUL_VEC_NGLV; // inner loop of mulVec with GLV struct FpGenerator; struct Op;