GDB (xrefs)
|
#include "gmp-utils.h"
Public Member Functions | |
gdb_mpq () | |
gdb_mpq (const mpq_t &from_val) | |
gdb_mpq (const gdb_mpq &from) | |
gdb_mpq (gdb_mpq &&from) | |
gdb_mpq (const gdb_mpz &num, const gdb_mpz &denom) | |
gdb_mpq (long num, long denom) | |
gdb_mpq & | operator= (const gdb_mpq &from) |
gdb_mpq & | operator= (gdb_mpq &&from) |
gdb_mpq & | operator= (const gdb_mpz &from) |
gdb_mpq & | operator= (double d) |
int | sgn () const |
gdb_mpq | operator+ (const gdb_mpq &other) const |
gdb_mpq | operator- (const gdb_mpq &other) const |
gdb_mpq | operator* (const gdb_mpq &other) const |
gdb_mpq | operator/ (const gdb_mpq &other) const |
gdb_mpq & | operator*= (const gdb_mpq &other) |
gdb_mpq & | operator/= (const gdb_mpq &other) |
bool | operator== (const gdb_mpq &other) const |
bool | operator< (const gdb_mpq &other) const |
std::string | str () const |
gdb_mpz | get_rounded () const |
gdb_mpz | as_integer () const |
double | as_double () const |
void | read_fixed_point (gdb::array_view< const gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p, const gdb_mpq &scaling_factor) |
void | write_fixed_point (gdb::array_view< gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p, const gdb_mpq &scaling_factor) const |
~gdb_mpq () | |
Private Attributes | |
mpq_t | m_val |
Friends | |
struct | gdb_mpf |
Definition at line 389 of file gmp-utils.h.
|
inline |
Definition at line 392 of file gmp-utils.h.
References m_val.
|
inlineexplicit |
Definition at line 394 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 400 of file gmp-utils.h.
References m_val.
|
inlineexplicit |
Definition at line 406 of file gmp-utils.h.
References m_val.
Definition at line 412 of file gmp-utils.h.
References gdb_mpz::m_val, and m_val.
|
inline |
Definition at line 420 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 549 of file gmp-utils.h.
References m_val.
|
inline |
|
inline |
Definition at line 514 of file gmp-utils.h.
References gdb_mpz::m_val, and m_val.
Referenced by unpack_long().
gdb_mpz gdb_mpq::get_rounded | ( | ) | const |
Definition at line 177 of file gmp-utils.c.
References gdb_mpz::m_val, and m_val.
Referenced by value_cast_to_fixed_point(), and write_fixed_point().
Definition at line 471 of file gmp-utils.h.
References m_val.
Definition at line 485 of file gmp-utils.h.
References m_val.
Definition at line 457 of file gmp-utils.h.
References m_val.
Definition at line 464 of file gmp-utils.h.
References m_val.
Definition at line 478 of file gmp-utils.h.
References m_val.
Definition at line 491 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 502 of file gmp-utils.h.
References m_val.
Definition at line 428 of file gmp-utils.h.
References m_val.
Definition at line 440 of file gmp-utils.h.
References gdb_mpz::m_val, and m_val.
|
inline |
Definition at line 446 of file gmp-utils.h.
References m_val.
Definition at line 434 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 497 of file gmp-utils.h.
References m_val.
void gdb_mpq::read_fixed_point | ( | gdb::array_view< const gdb_byte > | buf, |
enum bfd_endian | byte_order, | ||
bool | unsigned_p, | ||
const gdb_mpq & | scaling_factor ) |
Definition at line 210 of file gmp-utils.c.
References gdb_mpz::m_val, m_val, and gdb_mpz::read().
Referenced by fixed_point_binop(), gdb_mpf::read_fixed_point(), selftests::read_fp_test(), unpack_long(), and value_cast().
|
inline |
Definition at line 454 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 508 of file gmp-utils.h.
References gmp_string_printf(), and m_val.
Referenced by print_fixed_point_type_info(), and print_type_fixed_point().
void gdb_mpq::write_fixed_point | ( | gdb::array_view< gdb_byte > | buf, |
enum bfd_endian | byte_order, | ||
bool | unsigned_p, | ||
const gdb_mpq & | scaling_factor ) const |
Definition at line 224 of file gmp-utils.c.
References get_rounded(), m_val, and gdb_mpz::write().
Referenced by selftests::write_fp_test().
|
friend |
Definition at line 553 of file gmp-utils.h.
|
private |
Definition at line 555 of file gmp-utils.h.
Referenced by as_double(), as_integer(), gdb_mpq(), gdb_mpq(), gdb_mpq(), gdb_mpq(), gdb_mpq(), gdb_mpq(), get_rounded(), operator*(), operator*=(), operator+(), operator-(), operator/(), operator/=(), operator<(), operator=(), operator=(), operator=(), operator=(), operator==(), read_fixed_point(), gdb_mpf::read_fixed_point(), sgn(), str(), write_fixed_point(), and ~gdb_mpq().