36 #include "floatformat.h"
47 #if (defined HAVE_LONG_DOUBLE && defined PRINTF_HAS_LONG_DOUBLE \
48 && defined SCANF_HAS_LONG_DOUBLE)
50 # define DOUBLEST_PRINT_FORMAT "Lg"
51 # define DOUBLEST_SCAN_FORMAT "Lg"
54 # define DOUBLEST_PRINT_FORMAT "g"
55 # define DOUBLEST_SCAN_FORMAT "lg"
58 # undef HAVE_LONG_DOUBLE
59 # undef PRINTF_HAS_LONG_DOUBLE
60 # undef SCANF_HAS_LONG_DOUBLE
97 const struct type *from_type,
98 void *
to,
const struct type *to_type);
enum float_kind floatformat_classify(const struct floatformat *, const bfd_byte *)
const struct floatformat * floatformat_from_type(const struct type *type)
int floatformat_is_negative(const struct floatformat *, const bfd_byte *)
void convert_typed_floating(const void *from, const struct type *from_type, void *to, const struct type *to_type)
void floatformat_to_doublest(const struct floatformat *, const void *in, DOUBLEST *out)
void store_typed_floating(void *addr, const struct type *type, DOUBLEST val)
void floatformat_from_doublest(const struct floatformat *, const DOUBLEST *in, void *out)
DOUBLEST extract_typed_floating(const void *addr, const struct type *type)
const char * floatformat_mantissa(const struct floatformat *, const bfd_byte *)