|
GCC Middle and Back End API Reference
|
#include <integer.h>
Public Member Functions | |
| integer () | |
| integer (int i) | |
| ~integer () | |
| integer (const integer &other) | |
| integer (integer &&other) | |
| const integer & | get_integer () const |
| bool | is_zero_p () const |
| bool | is_one_p () const |
| integer & | operator= (const integer &other) |
| integer & | operator= (integer &&other) |
| void | dump_to_pp (pretty_printer *pp) const |
| void | dump () const |
| std::unique_ptr< json::value > | to_json () const |
| std::unique_ptr< diagnostics::markup::node > | make_markup_node () const |
| bool | operator== (const integer &other) const |
| bool | operator== (int i) const |
| bool | operator!= (const integer &other) const |
| bool | operator!= (int i) const |
| bool | operator< (const integer &other) const |
| bool | operator< (int i) const |
| bool | operator<= (const integer &other) const |
| bool | operator> (const integer &other) const |
| bool | operator>= (const integer &other) const |
| integer | operator+ (const integer &other) const |
| integer & | operator+= (const integer &other) |
| integer | operator- (const integer &other) const |
| integer | operator- () const |
| integer & | operator-= (const integer &other) |
| integer | operator* (const integer &other) const |
| integer | floor_div (const integer &other) const |
| integer | floor_mod (const integer &other) const |
| long | as_long () const |
| unsigned long | as_unsigned_long () const |
| mpz_t & | access_mpz () |
Static Public Member Functions | |
| static int | cmp (const integer &lhs, const integer &rhs) |
Static Public Attributes | |
| static constexpr const char * | dump_type_name = "integer" |
Private Attributes | |
| mpz_t | m_mpz |
A class for arbitrary precision integers. This is a C++ wrapper around gmp's mpz_t, with integration with pretty_printer. We don't use gmp's gmpxx.h: it uses exceptions, which we can't use.
|
inline |
References m_mpz.
Referenced by cmp(), floor_div(), floor_mod(), integer(), integer(), operator!=(), operator*(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator<(), operator<=(), operator=(), operator=(), operator==(), operator>(), and operator>=().
|
inline |
References m_mpz.
|
inline |
References integer(), m_mpz, and ana::other.
|
inline |
References integer(), m_mpz, and ana::other.
|
inline |
References m_mpz.
|
inline |
References m_mpz.
Referenced by ana::integer_with_unit< units::bit >::as_long().
|
inline |
References m_mpz.
Referenced by ana::integer_with_unit< units::bit >::as_unsigned_long().
References integer().
Referenced by ana::integer_with_unit< units::bit >::cmp().
| void ana::integer::dump | ( | ) | const |
| void ana::integer::dump_to_pp | ( | pretty_printer * | pp | ) | const |
Referenced by ana::pp_element_integer::add_to_phase_2().
References gcc_assert, integer(), m_mpz, and ana::other.
Referenced by ana::integer_with_unit< units::bit >::floor_div(), and ana::round_bit_to_lowest_byte().
References gcc_assert, integer(), m_mpz, and ana::other.
Referenced by ana::bit_within_byte().
|
inline |
|
inline |
References m_mpz.
Referenced by ana::integer_with_unit< units::bit >::is_one_p().
|
inline |
References m_mpz.
Referenced by ana::integer_with_unit< units::bit >::is_zero_p().
| std::unique_ptr< diagnostics::markup::node > ana::integer::make_markup_node | ( | ) | const |
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
References integer(), m_mpz, and ana::other.
| std::unique_ptr< json::value > ana::integer::to_json | ( | ) | const |
|
staticconstexpr |
|
private |
Referenced by access_mpz(), as_long(), as_unsigned_long(), floor_div(), floor_mod(), integer(), integer(), integer(), integer(), is_one_p(), is_zero_p(), operator!=(), operator!=(), operator*(), operator+(), operator-(), operator-(), operator<(), operator<(), operator<=(), operator=(), operator=(), operator==(), operator==(), operator>(), operator>=(), and ~integer().