GDB (xrefs)
Macros | Functions
/tmp/gdb-7.10/gdb/dfp.h File Reference

Go to the source code of this file.

Macros

#define MAX_DECIMAL_STRING   43
 

Functions

void decimal_to_string (const gdb_byte *, int, enum bfd_endian, char *)
 
int decimal_from_string (gdb_byte *, int, enum bfd_endian, const char *)
 
void decimal_from_integral (struct value *from, gdb_byte *to, int len, enum bfd_endian byte_order)
 
void decimal_from_floating (struct value *from, gdb_byte *to, int len, enum bfd_endian byte_order)
 
DOUBLEST decimal_to_doublest (const gdb_byte *from, int len, enum bfd_endian byte_order)
 
void decimal_binop (enum exp_opcode, const gdb_byte *, int, enum bfd_endian, const gdb_byte *, int, enum bfd_endian, gdb_byte *, int, enum bfd_endian)
 
int decimal_is_zero (const gdb_byte *, int, enum bfd_endian)
 
int decimal_compare (const gdb_byte *, int, enum bfd_endian, const gdb_byte *, int, enum bfd_endian)
 
void decimal_convert (const gdb_byte *, int, enum bfd_endian, gdb_byte *, int, enum bfd_endian)
 

Macro Definition Documentation

#define MAX_DECIMAL_STRING   43

Definition at line 30 of file dfp.h.

Referenced by decimal_to_doublest(), print_decimal_floating(), and printf_decfloat().

Function Documentation

void decimal_binop ( enum  exp_opcode,
const gdb_byte ,
int  ,
enum  bfd_endian,
const gdb_byte ,
int  ,
enum  bfd_endian,
gdb_byte ,
int  ,
enum  bfd_endian 
)
int decimal_compare ( const gdb_byte ,
int  ,
enum  bfd_endian,
const gdb_byte ,
int  ,
enum  bfd_endian 
)
void decimal_convert ( const gdb_byte ,
int  ,
enum  bfd_endian,
gdb_byte ,
int  ,
enum  bfd_endian 
)

Definition at line 371 of file dfp.c.

References decimal_from_number(), decimal_to_number(), and match_endianness().

Referenced by printf_decfloat(), and value_cast().

void decimal_from_floating ( struct value from,
gdb_byte to,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 241 of file dfp.c.

References decimal_from_string(), DOUBLEST_PRINT_FORMAT, value_as_double(), xfree(), and xstrprintf().

Referenced by value_cast().

void decimal_from_integral ( struct value from,
gdb_byte to,
int  len,
enum bfd_endian  byte_order 
)
int decimal_from_string ( gdb_byte ,
int  ,
enum  bfd_endian,
const char *   
)
int decimal_is_zero ( const gdb_byte ,
int  ,
enum  bfd_endian 
)

Definition at line 320 of file dfp.c.

References decimal_to_number(), and match_endianness().

Referenced by valpy_nonzero(), and value_logical_not().

DOUBLEST decimal_to_doublest ( const gdb_byte from,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 255 of file dfp.c.

References decimal_to_string(), and MAX_DECIMAL_STRING.

Referenced by unpack_double(), and unpack_long().

void decimal_to_string ( const gdb_byte ,
int  ,
enum  bfd_endian,
char *   
)

Definition at line 146 of file dfp.c.

References _, error(), and match_endianness().

Referenced by decimal_to_doublest(), print_decimal_floating(), and printf_decfloat().