MOTION  0.01
Framework for mixed-protocol multi-party computation
Namespaces | Functions
bit_vector.cpp File Reference
#include "bit_vector.h"
Include dependency graph for bit_vector.cpp:

Namespaces

 encrypto
 
 encrypto::motion
 

Functions

constexpr auto encrypto::motion::NumberOfBitsToNumberOfBytes (std::size_t number_of_bits)
 
void encrypto::motion::TruncateToFitImplementation (std::byte *pointer, const std::size_t bit_size)
 
void encrypto::motion::SetImplementation (std::byte *pointer, const bool value, const std::size_t bit_size) noexcept
 
void encrypto::motion::SetAtImplementation (std::byte *pointer, const bool value, const std::size_t position) noexcept
 
bool encrypto::motion::GetImplementation (const std::byte *pointer, const std::size_t position) noexcept
 
template<typename T , typename U >
bool encrypto::motion::EqualImplementation (const T *pointer1, const U *pointer2, const std::size_t byte_size)
 
template<typename T , typename U >
bool encrypto::motion::AlignedEqualImplementation (const T *pointer1, const U *pointer2, const std::size_t byte_size)
 
template<typename T , typename U >
void encrypto::motion::XorImplementation (const T *input, U *result, const std::size_t byte_size)
 
template<typename T , typename U >
void encrypto::motion::AlignedXorImplementation (const T *input, U *result, const std::size_t byte_size)
 
template<typename T , typename U >
void encrypto::motion::AndImplementation (const T *input, U *result, const std::size_t byte_size)
 
template<typename T , typename U >
void encrypto::motion::AlignedAndImplementation (const T *input, U *result, const std::size_t byte_size)
 
template<typename T , typename U >
void encrypto::motion::OrImplementation (const T *input, U *result, const std::size_t byte_size)
 
template<typename T , typename U >
void encrypto::motion::AlignedOrImplementation (const T *input, U *result, const std::size_t byte_size)
 
void encrypto::motion::CopyImplementation (const std::size_t from, const std::size_t to, std::byte *source, std::byte *destination)
 
template<>
std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput< float, std::true_type, StdAllocator > (float t)
 
template<>
std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput< double, std::true_type, StdAllocator > (double t)
 
template<>
std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput< float, std::true_type, StdAllocator > (const std::vector< float > &vector_of_floats)
 
template<>
std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput< double, std::true_type, StdAllocator > (const std::vector< double > &vector_of_doubles)
 
template<typename IntegralType , typename , typename Allocator >
std::vector< BitVector< Allocator > > encrypto::motion::ToInput (IntegralType integral_value)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (std::uint8_t)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (std::uint16_t)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (std::uint32_t)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (std::uint64_t)
 
template<typename IntegralType , typename , typename Allocator >
std::vector< BitVector< Allocator > > encrypto::motion::ToInput (const std::vector< IntegralType > &input_vector)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (const std::vector< std::uint8_t > &)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (const std::vector< std::uint16_t > &)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (const std::vector< std::uint32_t > &)
 
template std::vector< BitVector< StdAllocator > > encrypto::motion::ToInput (const std::vector< std::uint64_t > &)
 
std::ostream & encrypto::motion::operator<< (std::ostream &os, const BitSpan &bit_span)
 Output string representation of BitVector to std::ostream. More...