mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 05:57:57 -05:00
30 lines
486 B
C++
30 lines
486 B
C++
/*
|
|
* Clear.h
|
|
*
|
|
*/
|
|
|
|
#ifndef GC_CLEAR_H_
|
|
#define GC_CLEAR_H_
|
|
|
|
#include "Math/Integer.h"
|
|
|
|
namespace GC
|
|
{
|
|
|
|
class Clear : public Integer
|
|
{
|
|
public:
|
|
static string type_string() { return "clear"; }
|
|
|
|
Clear() : Integer() {}
|
|
Clear(long a) : Integer(a) {}
|
|
Clear(const IntBase& x) { IntBase::operator=(x); }
|
|
|
|
void xor_(const Clear& x, const Clear& y) { a = x.a ^ y.a; }
|
|
void xor_(const Clear& x, long y) { a = x.a ^ y; }
|
|
};
|
|
|
|
} /* namespace GC */
|
|
|
|
#endif /* GC_CLEAR_H_ */
|