aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-11-01 13:25:19 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-11-01 13:25:19 +0800
commit0e33c4eea8013df91a89484e5a0dba5fdc17e2a3 (patch)
tree47a7200e7254390cb43efa2ad5273acefabe6252
parentb49f25a6ccc0d04ac47069c8ed726e6648581bfc (diff)
downloadtangerine-mcl-0e33c4eea8013df91a89484e5a0dba5fdc17e2a3.tar.gz
tangerine-mcl-0e33c4eea8013df91a89484e5a0dba5fdc17e2a3.tar.zst
tangerine-mcl-0e33c4eea8013df91a89484e5a0dba5fdc17e2a3.zip
fix SqrPreCore for Ltag
-rw-r--r--misc/mul.cpp4
-rw-r--r--src/fp_llvm.hpp2
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; \
ertions'>+14 * Update to 0.20.6gblach2016-03-132-3/+3 * Update to 1.11.90.rakuco2016-03-123-4/+7 * Update to 4.12bapt2016-03-092-3/+3 * Update mutter to 3.18.3.kwm2016-03-042-3/+3 * Update to 1.2.4.vanilla2016-02-182-3/+3 * Update to 0.7.0.rakuco2016-02-163-7/+11 * - Switch to options helpersamdmi32016-02-152-33/+45 * - Clarify LICENSEamdmi32016-02-152-8/+9 * - Add LICENSEamdmi32016-02-152-4/+9 * - Switch to options helpersamdmi32016-02-157-17/+29 * - Add LICENSE_FILEamdmi32016-02-151-2/+5 * - Add LICENSE_FILEamdmi32016-02-152-15/+18 * - Add LICENSE_FILEamdmi32016-02-152-28/+10 * The FreeBSD GNOME team proudly presents GNOME 3.18 for FreeBSD.kwm2016-02-157-94/+12 * Update to 0.20.5gblach2016-02-092-3/+3 * Update x11-wm/awesome to 3.5.8garga2016-02-014-32/+32 * Update to 0.20.3gblach2016-01-313-10/+5 * Update the MATE DE to 1.12.kwm2016-01-252-4/+5 * Upgrade to 1.5.0.vanilla2016-01-162-3/+3 * Upgrade to 1.16.vanilla2016-01-136-123/+3 * Convert LICENSE= "GPLxx # or later" to "GPLxx+"amdmi32016-01-139-9/+9 * Update to 0.20.2gblach2015-12-302-3/+3 * - Add LICENSEamdmi32015-12-29