Files
MP-SPDZ/Processor/PrepBase.h
Marcel Keller e07d9bf2a3 Maintenance.
2022-01-11 16:05:26 +11:00

34 lines
931 B
C++

/*
* SubDataFilesBase.h
*
*/
#ifndef PROCESSOR_PREPBASE_H_
#define PROCESSOR_PREPBASE_H_
#include <string>
using namespace std;
#include "Math/field_types.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);
static void print_left_edabits(size_t n, size_t n_batch, bool strict,
int n_bits, size_t used);
};
#endif /* PROCESSOR_PREPBASE_H_ */