GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
decimal_float_ops Class Reference
Inheritance diagram for decimal_float_ops:
target_float_ops

Public Member Functions

std::string to_string (const gdb_byte *addr, const struct type *type, const char *format) const override
 
bool from_string (gdb_byte *addr, const struct type *type, const std::string &string) const override
 
LONGEST to_longest (const gdb_byte *addr, const struct type *type) const override
 
void from_longest (gdb_byte *addr, const struct type *type, LONGEST val) const override
 
void from_ulongest (gdb_byte *addr, const struct type *type, ULONGEST val) const override
 
double to_host_double (const gdb_byte *addr, const struct type *type) const override
 
void from_host_double (gdb_byte *addr, const struct type *type, double val) const override
 
void convert (const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type) const override
 
void binop (enum exp_opcode opcode, const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y, gdb_byte *res, const struct type *type_res) const override
 
int compare (const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y) const override
 

Detailed Description

Definition at line 1875 of file target-float.c.

Member Function Documentation

◆ binop()

void decimal_float_ops::binop ( enum exp_opcode opcode,
const gdb_byte * x,
const struct type * type_x,
const gdb_byte * y,
const struct type * type_y,
gdb_byte * res,
const struct type * type_res ) const
overridevirtual

◆ compare()

int decimal_float_ops::compare ( const gdb_byte * x,
const struct type * type_x,
const gdb_byte * y,
const struct type * type_y ) const
overridevirtual

◆ convert()

void decimal_float_ops::convert ( const gdb_byte * from,
const struct type * from_type,
gdb_byte * to,
const struct type * to_type ) const
overridevirtual

Implements target_float_ops.

Definition at line 2120 of file target-float.c.

References decimal_from_number(), and decimal_to_number().

◆ from_host_double()

void decimal_float_ops::from_host_double ( gdb_byte * addr,
const struct type * type,
double val ) const
inlineoverridevirtual

Implements target_float_ops.

Definition at line 1896 of file target-float.c.

◆ from_longest()

void decimal_float_ops::from_longest ( gdb_byte * addr,
const struct type * type,
LONGEST val ) const
overridevirtual

Implements target_float_ops.

Definition at line 1996 of file target-float.c.

References decimal_from_number().

◆ from_string()

bool decimal_float_ops::from_string ( gdb_byte * addr,
const struct type * type,
const std::string & string ) const
overridevirtual

◆ from_ulongest()

void decimal_float_ops::from_ulongest ( gdb_byte * addr,
const struct type * type,
ULONGEST val ) const
overridevirtual

Implements target_float_ops.

Definition at line 2013 of file target-float.c.

References decimal_from_number().

◆ to_host_double()

double decimal_float_ops::to_host_double ( const gdb_byte * addr,
const struct type * type ) const
inlineoverridevirtual

Implements target_float_ops.

Definition at line 1889 of file target-float.c.

◆ to_longest()

LONGEST decimal_float_ops::to_longest ( const gdb_byte * addr,
const struct type * type ) const
overridevirtual

Implements target_float_ops.

Definition at line 2030 of file target-float.c.

References to_string().

◆ to_string()

std::string decimal_float_ops::to_string ( const gdb_byte * addr,
const struct type * type,
const char * format = nullptr ) const
overridevirtual

Implements target_float_ops.

Definition at line 1918 of file target-float.c.

References type::length(), match_endianness(), and MAX_DECIMAL_STRING.

Referenced by to_longest().


The documentation for this class was generated from the following file: