diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-11-01 13:25:19 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-11-01 13:25:19 +0800 |
commit | 0e33c4eea8013df91a89484e5a0dba5fdc17e2a3 (patch) | |
tree | 47a7200e7254390cb43efa2ad5273acefabe6252 | |
parent | b49f25a6ccc0d04ac47069c8ed726e6648581bfc (diff) | |
download | dexon-mcl-0e33c4eea8013df91a89484e5a0dba5fdc17e2a3.tar.gz dexon-mcl-0e33c4eea8013df91a89484e5a0dba5fdc17e2a3.tar.zst dexon-mcl-0e33c4eea8013df91a89484e5a0dba5fdc17e2a3.zip |
fix SqrPreCore for Ltag
-rw-r--r-- | misc/mul.cpp | 4 | ||||
-rw-r--r-- | src/fp_llvm.hpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/misc/mul.cpp b/misc/mul.cpp index f43adb9..2f486bf 100644 --- a/misc/mul.cpp +++ b/misc/mul.cpp @@ -48,7 +48,9 @@ CYBOZU_TEST_AUTO(mulPre) rg.read(x, N); rg.read(y, N * 2); CYBOZU_BENCH("mul ", op.fp_mul, y, y, x, op.p); - CYBOZU_BENCH("mulPre", op.fpDbl_mulPre, y, y, x); + CYBOZU_BENCH("sqr ", op.fp_sqr, y, y, op.p); + CYBOZU_BENCH("mulPre", op.fpDbl_mulPre, y, y, y); + CYBOZU_BENCH("sqrPre", op.fpDbl_sqrPre, y, y); CYBOZU_BENCH("mod ", op.fpDbl_mod, y, y, op.p); } } diff --git a/src/fp_llvm.hpp b/src/fp_llvm.hpp index 13c5df7..b6bf412 100644 --- a/src/fp_llvm.hpp +++ b/src/fp_llvm.hpp @@ -12,7 +12,7 @@ struct EnableKaratsuba<Ltag> { template<>const u3u AddPre<n, Ltag>::f = &mcl_fp_addPre ## n ## L; \ template<>const u3u SubPre<n, Ltag>::f = &mcl_fp_subPre ## n ## L; \ template<>const void3u MulPreCore<n, Ltag>::f = &mcl_fpDbl_mulPre ## n ## L; \ -template<>const void2u SqrPre<n, Ltag>::f = &mcl_fpDbl_sqrPre ## n ## L; \ +template<>const void2u SqrPreCore<n, Ltag>::f = &mcl_fpDbl_sqrPre ## n ## L; \ template<>const void2uI MulUnitPre<n, Ltag>::f = &mcl_fp_mulUnitPre ## n ## L; \ template<>const void4u Add<n, Ltag>::f = &mcl_fp_add ## n ## L; \ template<>const void4u Sub<n, Ltag>::f = &mcl_fp_sub ## n ## L; \ |