* breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
[binutils-gdb.git] / gdb / doublest.c
index 3ec6dd393130c3555233a109e4d0e98a0beaa6d1..859b43900e2a999b4e0f050a4dbbf512e80af57b 100644 (file)
@@ -1,7 +1,7 @@
 /* Floating point routines for GDB, the GNU debugger.
 
    Copyright (C) 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
-   1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007
+   1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008, 2009
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -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;
@@ -940,7 +940,7 @@ convert_typed_floating (const void *from, const struct type *from_type,
   else
     {
       /* The floating-point types don't match.  The best we can do
-         (aport from simulating the target FPU) is converting to the
+         (apart from simulating the target FPU) is converting to the
          widest floating-point type supported by the host, and then
          again to the desired type.  */
       DOUBLEST d;