use montRed for sqrMont

update-fork
MITSUNARI Shigeo 4 years ago
parent f01790ba5d
commit 014ecddf18
  1. 2
      src/low_func.hpp

@ -641,7 +641,7 @@ template<size_t N, bool isFullBit, class Tag = Gtag>
struct SqrMont { struct SqrMont {
static inline void func(Unit *y, const Unit *x, const Unit *p) static inline void func(Unit *y, const Unit *x, const Unit *p)
{ {
#if MCL_MAX_BIT_SIZE == 1024 || MCL_SIZEOF_UNIT == 4 // check speed #if 0 // #if MCL_MAX_BIT_SIZE == 1024 || MCL_SIZEOF_UNIT == 4 // check speed
Unit xx[N * 2]; Unit xx[N * 2];
SqrPre<N, Tag>::f(xx, x); SqrPre<N, Tag>::f(xx, x);
MontRed<N, isFullBit, Tag>::f(y, xx, p); MontRed<N, isFullBit, Tag>::f(y, xx, p);

Loading…
Cancel
Save