Files
MP-SPDZ/Processor/TruncPrTuple.cpp
2024-11-21 13:14:54 +11:00

18 lines
355 B
C++

/*
* TruncPrTuple.cpp
*
*/
#include "TruncPrTuple.h"
void trunc_pr_check(int k, int m, int n_bits)
{
if (not (m < k and 0 < m and k <= n_bits))
{
stringstream ss;
ss << "invalid trunc_pr parameters, need 0 < m=" << m << " < k=" << k
<< " <= n_bits=" << n_bits;
throw Processor_Error(ss.str());
}
}