Functionality to call high-level code from C++.

This commit is contained in:
Marcel Keller
2024-11-21 12:18:10 +11:00
parent e7554ccbfd
commit 91321ff8cd
245 changed files with 3875 additions and 1139 deletions

View File

@@ -17,7 +17,8 @@ namespace GC
void Semi::prepare_mult(const SemiSecret& x, const SemiSecret& y, int n,
bool repeat)
{
if (repeat and OnlineOptions::singleton.live_prep and (n < 0 or n > 1))
if (repeat and OnlineOptions::singleton.live_prep and (n < 0 or n > 1)
and P.num_players() == 2)
{
this->triples.push_back({{}});
auto& triple = this->triples.back();