#include "inferior.h"
#include "gdbcore.h"
#include "target.h"
+<<<<<<< i386-tdep.c
+#include "floatformat.h"
+||||||| 1.26
+=======
#include "symtab.h"
+>>>>>>> 1.27
static long
i386_get_frame_setup PARAMS ((int));
{
if (TYPE_CODE_FLT == TYPE_CODE(type))
{
- extern struct ext_format ext_format_i387;
double d;
/* 387 %st(0), gcc uses this */
- ieee_extended_to_double (&ext_format_i387,
- ®buf[REGISTER_BYTE(FP0_REGNUM)],
- &d);
+ floatformat_to_double (&floatformat_i387_ext,
+ ®buf[REGISTER_BYTE(FP0_REGNUM)],
+ &d);
store_floating (valbuf, TYPE_LENGTH (type), d);
}
else
#include <sys/reg.h>
#endif
-#include "ieee-float.h"
+#include "floatformat.h"
#include "target.h"
-extern struct ext_format ext_format_i387;
\f
/* this table must line up with REGISTER_NAMES in tm-i386v.h */
/* symbols like 'EAX' come from <sys/reg.h> */
#include "inferior.h"
#include "language.h"
#include "gdbcore.h"
-#include "ieee-float.h"
-
-struct ext_format ext_format_i387 = {
-/* tot sbyte smask expbyte manbyte */
- 10, 9, 0x80, 9,8, 4,0 /* i387 */
-};
+#include "floatformat.h"
/* FIXME: Eliminate these routines when we have the time to change all
the callers. */
char *from;
char *to;
{
- ieee_extended_to_double (&ext_format_i387, from, (double *)to);
+ floatformat_to_double (&floatformat_i387_ext, from, (double *)to);
}
void
char *from;
char *to;
{
- double_to_ieee_extended (&ext_format_i387, (double *)from, to);
+ floatformat_from_double (&floatformat_i387_ext, (double *)from, to);
}
void