Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
28 template<mp_
size_t n>
class bigint
31 static const mp_size_t
N = n;
37 bigint(
const unsigned long x);
51 static constexpr
size_t max_bits() {
return n * GMP_NUMB_BITS; };
58 void to_mpz(mpz_t r)
const;
59 bool test_bit(
const std::size_t bitno)
const;
63 friend std::ostream &operator<<<n>(std::ostream &out,
const bigint<n> &b);
64 friend std::istream &
operator>><n>(std::istream &in,
bigint<n> &b);
void to_mpz(mpz_t r) const
Return the last limb of the integer.
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
static constexpr size_t max_bits()
The number of bits representable by this bigint type.
bool operator==(const bigint< n > &other) const
unsigned long as_ulong() const
bool operator!=(const bigint< n > &other) const
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
bool test_bit(const std::size_t bitno) const