aboutsummaryrefslogtreecommitdiff
path: root/gdb/doublest.c
diff options
context:
space:
mode:
authorLuis Machado <luisgpm@br.ibm.com>2008-01-03 11:39:35 +0000
committerLuis Machado <luisgpm@br.ibm.com>2008-01-03 11:39:35 +0000
commit542a88d0e44f1435c18e1dd02bcdf55f14b98583 (patch)
treed0e8303a9fda0f644491946d275cd4637fc0d898 /gdb/doublest.c
parentdc2bbab20c7124b2a9c04f4fbfd4a76a2c5b2692 (diff)
downloadgdb-542a88d0e44f1435c18e1dd02bcdf55f14b98583.zip
gdb-542a88d0e44f1435c18e1dd02bcdf55f14b98583.tar.gz
gdb-542a88d0e44f1435c18e1dd02bcdf55f14b98583.tar.bz2
* doublest.c (convert_floatformat_to_doublest): Call
floatformat_to_doublest instead of floatformat_to_double and use DOUBLEST variables. (convert_doublest_to_floatformat): Call floatformat_from_doublest instead of floatformat_from_double and use DOUBLEST variables.
Diffstat (limited to 'gdb/doublest.c')
-rw-r--r--gdb/doublest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c
index b6c99be..2edb57f 100644
--- a/gdb/doublest.c
+++ b/gdb/doublest.c
@@ -202,19 +202,19 @@ convert_floatformat_to_doublest (const struct floatformat *fmt,
if (fmt->split_half)
{
- double dtop, dbot;
- floatformat_to_double (fmt->split_half, ufrom, &dtop);
+ DOUBLEST dtop, dbot;
+ floatformat_to_doublest (fmt->split_half, ufrom, &dtop);
/* Preserve the sign of 0, which is the sign of the top
half. */
if (dtop == 0.0)
{
- *to = (DOUBLEST) dtop;
+ *to = dtop;
return;
}
- floatformat_to_double (fmt->split_half,
+ floatformat_to_doublest (fmt->split_half,
ufrom + fmt->totalsize / FLOATFORMAT_CHAR_BIT / 2,
&dbot);
- *to = (DOUBLEST) dtop + (DOUBLEST) dbot;
+ *to = dtop + dbot;
return;
}
@@ -417,7 +417,7 @@ convert_doublest_to_floatformat (CONST struct floatformat *fmt,
removed via storing in memory, and so the top half really is
the result of converting to double. */
static volatile double dtop, dbot;
- double dtopnv, dbotnv;
+ DOUBLEST dtopnv, dbotnv;
dtop = (double) dfrom;
/* If the rounded top half is Inf, the bottom must be 0 not NaN
or Inf. */
@@ -427,8 +427,8 @@ convert_doublest_to_floatformat (CONST struct floatformat *fmt,
dbot = (double) (dfrom - (DOUBLEST) dtop);
dtopnv = dtop;
dbotnv = dbot;
- floatformat_from_double (fmt->split_half, &dtopnv, uto);
- floatformat_from_double (fmt->split_half, &dbotnv,
+ floatformat_from_doublest (fmt->split_half, &dtopnv, uto);
+ floatformat_from_doublest (fmt->split_half, &dbotnv,
(uto
+ fmt->totalsize / FLOATFORMAT_CHAR_BIT / 2));
return;