aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-11-16 12:09:48 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-11-16 12:09:48 +0800
commit8a5b3e7e2a823844f7cf04035ced9c6488675818 (patch)
tree04940ff174a470ed39cf8c4196155268c2edd94f
parent417bf50cf78bcf8b468b6bd295a572715ecfe5d8 (diff)
downloaddexon-mcl-8a5b3e7e2a823844f7cf04035ced9c6488675818.tar.gz
dexon-mcl-8a5b3e7e2a823844f7cf04035ced9c6488675818.tar.zst
dexon-mcl-8a5b3e7e2a823844f7cf04035ced9c6488675818.zip
update low function
-rw-r--r--sample/large.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sample/large.cpp b/sample/large.cpp
index 3c83c2c..8c1c74c 100644
--- a/sample/large.cpp
+++ b/sample/large.cpp
@@ -19,16 +19,16 @@ void testMul()
ux[i] = -i * i + 5;
uy[i] = -i * i + 9;
}
- mulPreGmp(a, ux, uy, N);
- MulPre<N, Gtag>::f(b, ux, uy);
+ MulPreCore<N, Gtag>::f(a, ux, uy);
+ MulPreCore<N, Ltag>::f(b, ux, uy);
for (size_t i = 0; i < N * 2; i++) {
if (a[i] != b[i]) {
printf("ERR %016llx %016llx\n", (long long)a[i], (long long)b[i]);
}
}
puts("end testMul");
- CYBOZU_BENCH("gmp ", mulPreGmp, ux, ux, uy, N);
- CYBOZU_BENCH("kara", (MulPre<N, Gtag>), ux, ux, uy);
+ CYBOZU_BENCH("gmp ", (MulPreCore<N, Gtag>::f), ux, ux, uy);
+ CYBOZU_BENCH("kara", (MulPre<N, Gtag>::karatsuba), ux, ux, uy);
}
void mulGmp(mpz_class& z, const mpz_class& x, const mpz_class& y, const mpz_class& p)