Files
MP-SPDZ/Processor/PrepBase.h
Marcel Keller 2813c0ef0f Maintenance.
2023-08-14 18:29:46 +10:00

37 lines
1.0 KiB
C++

/*
* SubDataFilesBase.h
*
*/
#ifndef PROCESSOR_PREPBASE_H_
#define PROCESSOR_PREPBASE_H_
#include <string>
using namespace std;
#include "Math/field_types.h"
#include "Tools/TimerWithComm.h"
class PrepBase
{
public:
static string get_suffix(int thread_num);
static string get_filename(const string& prep_data_dir, Dtype type,
const string& type_short, int my_num, int thread_num = 0);
static string get_input_filename(const string& prep_data_dir,
const string& type_short, int input_player, int my_num,
int thread_num = 0);
static string get_edabit_filename(const string& prep_data_dir, int n_bits,
int my_num, int thread_num = 0);
static void print_left(const char* name, size_t n,
const string& type_string, size_t used, bool large = false);
static void print_left_edabits(size_t n, size_t n_batch, bool strict,
int n_bits, size_t used, bool malicious);
TimerWithComm prep_timer;
};
#endif /* PROCESSOR_PREPBASE_H_ */