mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Maintenance.
This commit is contained in:
38
GC/BitPrepFiles.h
Normal file
38
GC/BitPrepFiles.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* BitPrepFiles.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef GC_BITPREPFILES_H_
|
||||
#define GC_BITPREPFILES_H_
|
||||
|
||||
namespace GC
|
||||
{
|
||||
|
||||
#include "ShiftableTripleBuffer.h"
|
||||
#include "Processor/Data_Files.h"
|
||||
|
||||
template<class T>
|
||||
class BitPrepFiles : public ShiftableTripleBuffer<T>, public Sub_Data_Files<T>
|
||||
{
|
||||
public:
|
||||
BitPrepFiles(const Names& N, const string& prep_data_dir,
|
||||
DataPositions& usage, int thread_num = -1) :
|
||||
Sub_Data_Files<T>(N, prep_data_dir, usage, thread_num)
|
||||
{
|
||||
}
|
||||
|
||||
array<T, 3> get_triple_no_count(int n_bits)
|
||||
{
|
||||
return ShiftableTripleBuffer<T>::get_triple_no_count(n_bits);
|
||||
}
|
||||
|
||||
void get(Dtype type, T* data)
|
||||
{
|
||||
Sub_Data_Files<T>::get(type, data);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* GC_BITPREPFILES_H_ */
|
||||
Reference in New Issue
Block a user