Wire Sysio Wire Sysion 1.0.0
|
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <cstdint>
#include <libff/common/utils.hpp>
Go to the source code of this file.
Namespaces | |
namespace | libff |
Functions | |
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::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,...) |
void | libff::serialize_bit_vector (std::ostream &out, const bit_vector &v) |
void | libff::deserialize_bit_vector (std::istream &in, bit_vector &v) |
Implementation of misc math and serialization utility functions
Definition in file utils.cpp.