GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/doublest.c File Reference
#include "defs.h"
#include "doublest.h"
#include "floatformat.h"
#include "gdb_assert.h"
#include "gdb_string.h"
#include "gdbtypes.h"
#include <math.h>

Go to the source code of this file.

Defines

#define FLOATFORMAT_CHAR_BIT   8
#define FLOATFORMAT_LARGEST_BYTES   16

Functions

int floatformat_is_negative (const struct floatformat *fmt, const bfd_byte *uval)
enum float_kind floatformat_classify (const struct floatformat *fmt, const bfd_byte *uval)
const char * floatformat_mantissa (const struct floatformat *fmt, const bfd_byte *val)
void floatformat_to_doublest (const struct floatformat *fmt, const void *in, DOUBLEST *out)
void floatformat_from_doublest (const struct floatformat *fmt, const DOUBLEST *in, void *out)
struct floatformat * floatformat_from_type (const struct type *type)
DOUBLEST extract_typed_floating (const void *addr, const struct type *type)
void store_typed_floating (void *addr, const struct type *type, DOUBLEST val)
void convert_typed_floating (const void *from, const struct type *from_type, void *to, const struct type *to_type)

Define Documentation

#define FLOATFORMAT_CHAR_BIT   8

Definition at line 37 of file doublest.c.

#define FLOATFORMAT_LARGEST_BYTES   16

Definition at line 41 of file doublest.c.


Function Documentation

void convert_typed_floating ( const void *  from,
const struct type from_type,
void *  to,
const struct type to_type 
)

Definition at line 864 of file doublest.c.

DOUBLEST extract_typed_floating ( const void *  addr,
const struct type type 
)

Definition at line 819 of file doublest.c.

enum float_kind floatformat_classify ( const struct floatformat *  fmt,
const bfd_byte *  uval 
)

Definition at line 534 of file doublest.c.

void floatformat_from_doublest ( const struct floatformat *  fmt,
const DOUBLEST in,
void *  out 
)

Definition at line 729 of file doublest.c.

struct floatformat* floatformat_from_type ( const struct type type) [read]

Definition at line 804 of file doublest.c.

int floatformat_is_negative ( const struct floatformat *  fmt,
const bfd_byte *  uval 
)

Definition at line 508 of file doublest.c.

const char* floatformat_mantissa ( const struct floatformat *  fmt,
const bfd_byte *  val 
)

Definition at line 621 of file doublest.c.

void floatformat_to_doublest ( const struct floatformat *  fmt,
const void *  in,
DOUBLEST out 
)

Definition at line 699 of file doublest.c.

void store_typed_floating ( void *  addr,
const struct type type,
DOUBLEST  val 
)

Definition at line 832 of file doublest.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines