mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 05:57:57 -05:00
34 lines
931 B
C++
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_ */
|