GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gdb_mpq Struct Reference

#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_mpqoperator= (const gdb_mpq &from)
 
gdb_mpqoperator= (gdb_mpq &&from)
 
std::string str () const
 
gdb_mpz get_rounded () 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 ()
 

Public Attributes

mpq_t val
 

Detailed Description

Definition at line 146 of file gmp-utils.h.

Constructor & Destructor Documentation

◆ gdb_mpq() [1/4]

gdb_mpq::gdb_mpq ( )
inline

Definition at line 151 of file gmp-utils.h.

References val.

◆ gdb_mpq() [2/4]

gdb_mpq::gdb_mpq ( const mpq_t &  from_val)
inlineexplicit

Definition at line 153 of file gmp-utils.h.

References val.

◆ gdb_mpq() [3/4]

gdb_mpq::gdb_mpq ( const gdb_mpq from)
inline

Definition at line 159 of file gmp-utils.h.

References val.

◆ gdb_mpq() [4/4]

gdb_mpq::gdb_mpq ( gdb_mpq &&  from)
inlineexplicit

Definition at line 165 of file gmp-utils.h.

References val.

◆ ~gdb_mpq()

gdb_mpq::~gdb_mpq ( )
inline

Definition at line 214 of file gmp-utils.h.

References val.

Member Function Documentation

◆ get_rounded()

gdb_mpz gdb_mpq::get_rounded ( ) const

Definition at line 159 of file gmp-utils.c.

References gdb_mpz::val, and val.

Referenced by value_cast_to_fixed_point(), and write_fixed_point().

◆ operator=() [1/2]

gdb_mpq & gdb_mpq::operator= ( const gdb_mpq from)
inline

Definition at line 172 of file gmp-utils.h.

References val.

◆ operator=() [2/2]

gdb_mpq & gdb_mpq::operator= ( gdb_mpq &&  from)
inline

Definition at line 178 of file gmp-utils.h.

References val.

◆ read_fixed_point()

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 
)

◆ str()

std::string gdb_mpq::str ( ) const
inline

Definition at line 185 of file gmp-utils.h.

References gmp_string_printf(), and val.

Referenced by print_fixed_point_type_info(), and print_type_fixed_point().

◆ write_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 206 of file gmp-utils.c.

References get_rounded(), val, and gdb_mpz::write().

Referenced by selftests::write_fp_test().

Member Data Documentation

◆ val

mpq_t gdb_mpq::val

The documentation for this struct was generated from the following files: