aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/multiexp.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-28 00:27:54 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-11 13:37:45 +0000
commit263431c486bcaddf442c912cf56171a778322316 (patch)
treeb82e0ed856dd3307a076afea2b3e74a30cc0aea1 /tests/performance_tests/multiexp.h
parentmultiexp: cut down on memory allocations (diff)
downloadmonero-263431c486bcaddf442c912cf56171a778322316.tar.xz
Pippenger multiexp
Based on sarang's python code
Diffstat (limited to 'tests/performance_tests/multiexp.h')
-rw-r--r--tests/performance_tests/multiexp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/performance_tests/multiexp.h b/tests/performance_tests/multiexp.h
index ab5af166b..294e74116 100644
--- a/tests/performance_tests/multiexp.h
+++ b/tests/performance_tests/multiexp.h
@@ -39,9 +39,10 @@ enum test_multiexp_algorithm
multiexp_bos_coster,
multiexp_straus,
multiexp_straus_cached,
+ multiexp_pippenger,
};
-template<test_multiexp_algorithm algorithm, size_t npoints>
+template<test_multiexp_algorithm algorithm, size_t npoints, size_t c=0>
class test_multiexp
{
public:
@@ -74,6 +75,8 @@ public:
return res == straus(data);
case multiexp_straus_cached:
return res == straus(data, cache);
+ case multiexp_pippenger:
+ return res == pippenger(data, c);
default:
return false;
}