emp-toolkit
Float Class Reference

#include <float.h>

Inheritance diagram for Float:
Swappable< Float >

Public Member Functions

 Float (Float &&in)
 
 Float (const Float &in)
 
Floatoperator= (Float rhs)
 
 Float (int value_length, int expnt_length, double input, int party=PUBLIC)
 
Float If (const Bit &select, const Float &d)
 
template<typename O >
reveal (int party=PUBLIC) const
 
int size () const
 
Float abs () const
 
void normalize (int value_length, int to_add_to_expnt)
 
string detail (int party) const
 
Bit greater (const Float &rhs) const
 
Bit equal (const Float &rhs) const
 
Float operator+ (const Float &rhs) const
 
Float operator- (const Float &rhs) const
 
Float operator- () const
 
Float operator* (const Float &rhs) const
 
Float operator/ (const Float &rhs) const
 
Float operator & (const Float &rhs) const
 
Float operator| (const Float &rhs) const
 
Float operator^ (const Float &rhs) const
 
template<>
string reveal (int party) const
 
template<>
double reveal (int party) const
 

Public Attributes

Integer value
 
Integer expnt
 

Constructor & Destructor Documentation

§ Float() [1/3]

Float::Float ( Float &&  in)
inline

§ Float() [2/3]

Float::Float ( const Float in)
inline

§ Float() [3/3]

Float::Float ( int  value_length,
int  expnt_length,
double  input,
int  party = PUBLIC 
)
inline

Member Function Documentation

§ abs()

Float Float::abs ( ) const
inline

§ detail()

string Float::detail ( int  party) const
inline

§ equal()

Bit Float::equal ( const Float rhs) const
inline

§ greater()

Bit Float::greater ( const Float rhs) const
inline

§ If()

Float Float::If ( const Bit select,
const Float d 
)
inline

§ normalize()

void Float::normalize ( int  value_length,
int  to_add_to_expnt 
)
inline

§ operator &()

Float Float::operator& ( const Float rhs) const

§ operator*()

Float Float::operator* ( const Float rhs) const
inline

§ operator+()

Float Float::operator+ ( const Float rhs) const
inline

§ operator-() [1/2]

Float Float::operator- ( const Float rhs) const
inline

§ operator-() [2/2]

Float Float::operator- ( ) const
inline

§ operator/()

Float Float::operator/ ( const Float rhs) const
inline

§ operator=()

Float& Float::operator= ( Float  rhs)
inline

§ operator^()

Float Float::operator^ ( const Float rhs) const
inline

§ operator|()

Float Float::operator| ( const Float rhs) const
inline

§ reveal() [1/3]

template<>
string Float::reveal ( int  party) const
inline

§ reveal() [2/3]

template<>
double Float::reveal ( int  party) const
inline

§ reveal() [3/3]

template<typename O >
O Float::reveal ( int  party = PUBLIC) const

§ size()

int Float::size ( ) const
inline

Member Data Documentation

§ expnt

Integer Float::expnt

§ value

Integer Float::value

The documentation for this class was generated from the following files: