|
size_t | libff::get_power_of_two (size_t n) |
|
size_t | libff::log2 (size_t n) |
| returns ceil(log2(n)), so 1ul<<log2(n) is the smallest power of 2, that is not less than 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 &&...) |
|
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
- Author
- This file is part of libff, developed by SCIPR Lab and contributors (see AUTHORS).
- Copyright
- MIT license (see LICENSE file)
Definition in file utils.hpp.