GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/dfp.c File Reference
#include "defs.h"
#include "expression.h"
#include "gdbtypes.h"
#include "value.h"
#include "dfp.h"
#include "dpd/decimal128.h"
#include "dpd/decimal64.h"
#include "dpd/decimal32.h"

Go to the source code of this file.

Defines

#define OPPOSITE_BYTE_ORDER   BFD_ENDIAN_BIG

Functions

void decimal_to_string (const gdb_byte *decbytes, int len, enum bfd_endian byte_order, char *s)
int decimal_from_string (gdb_byte *decbytes, int len, enum bfd_endian byte_order, const char *string)
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 op, const gdb_byte *x, int len_x, enum bfd_endian byte_order_x, const gdb_byte *y, int len_y, enum bfd_endian byte_order_y, gdb_byte *result, int len_result, enum bfd_endian byte_order_result)
int decimal_is_zero (const gdb_byte *x, int len, enum bfd_endian byte_order)
int decimal_compare (const gdb_byte *x, int len_x, enum bfd_endian byte_order_x, const gdb_byte *y, int len_y, enum bfd_endian byte_order_y)
void decimal_convert (const gdb_byte *from, int len_from, enum bfd_endian byte_order_from, gdb_byte *to, int len_to, enum bfd_endian byte_order_to)

Define Documentation

#define OPPOSITE_BYTE_ORDER   BFD_ENDIAN_BIG

Function Documentation

void decimal_binop ( enum exp_opcode  op,
const gdb_byte x,
int  len_x,
enum bfd_endian  byte_order_x,
const gdb_byte y,
int  len_y,
enum bfd_endian  byte_order_y,
gdb_byte result,
int  len_result,
enum bfd_endian  byte_order_result 
)

Definition at line 269 of file dfp.c.

int decimal_compare ( const gdb_byte x,
int  len_x,
enum bfd_endian  byte_order_x,
const gdb_byte y,
int  len_y,
enum bfd_endian  byte_order_y 
)

Definition at line 335 of file dfp.c.

void decimal_convert ( const gdb_byte from,
int  len_from,
enum bfd_endian  byte_order_from,
gdb_byte to,
int  len_to,
enum bfd_endian  byte_order_to 
)

Definition at line 371 of file dfp.c.

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.

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

Definition at line 209 of file dfp.c.

int decimal_from_string ( gdb_byte decbytes,
int  len,
enum bfd_endian  byte_order,
const char *  string 
)

Definition at line 174 of file dfp.c.

int decimal_is_zero ( const gdb_byte x,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 320 of file dfp.c.

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

Definition at line 255 of file dfp.c.

void decimal_to_string ( const gdb_byte decbytes,
int  len,
enum bfd_endian  byte_order,
char *  s 
)

Definition at line 146 of file dfp.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines