Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "libff/common/utils.tcc"
Go to the source code of this file.
Namespaces | |
libff | |
Macros | |
#define | FMT(...) (libff::UNUSED(__VA_ARGS__), "") |
#define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) |
Typedefs | |
typedef std::vector< bool > | libff::bit_vector |
Functions | |
size_t | libff::get_power_of_two (size_t n) |
size_t | libff::log2 (size_t n) |
size_t | libff::exp2 (size_t k) |
size_t | libff::to_twos_complement (int i, size_t w) |
int | libff::from_twos_complement (size_t i, size_t w) |
size_t | libff::bitreverse (size_t n, const size_t l) |
bit_vector | libff::int_list_to_bits (const std::initializer_list< unsigned long > &l, const size_t wordsize) |
long long | libff::div_ceil (long long x, long long y) |
bool | libff::is_little_endian () |
std::string | libff::FORMAT (const std::string &prefix, const char *format,...) |
template<typename... Types> | |
void | libff::UNUSED (Types &&...) |
A variadic template to suppress unused argument warnings. More... | |
void | libff::serialize_bit_vector (std::ostream &out, const bit_vector &v) |
void | libff::deserialize_bit_vector (std::istream &in, bit_vector &v) |
template<typename T > | |
size_t | libff::size_in_bits (const std::vector< T > &v) |
Declaration of misc math and serialization utility functions
Definition in file utils.hpp.
#define FMT | ( | ... | ) | (libff::UNUSED(__VA_ARGS__), "") |