OSDN Git Service

* config/fp-bit.c (nan): Rename from this ..
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Dec 2008 02:23:35 +0000 (02:23 +0000)
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Dec 2008 02:23:35 +0000 (02:23 +0000)
(makenan): .. to this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142701 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/fp-bit.c

index c792f1e..2736005 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-12  Ben Elliston  <bje@au.ibm.com>
+
+       * config/fp-bit.c (nan): Rename from this ..
+       (makenan): .. to this.
+
 2008-12-11  Adam Nemet  <anemet@caviumnetworks.com>
 
        * config/mips/mips.md (*branch_bit<bbv><mode>,
index bdf04ff..1da69b2 100644 (file)
@@ -140,7 +140,7 @@ extern const fp_number_type __thenan_df;
 
 INLINE
 static fp_number_type *
-nan (void)
+makenan (void)
 {
   /* Discard the const qualifier...  */
 #ifdef TFLOAT
@@ -621,7 +621,7 @@ _fpadd_parts (fp_number_type * a,
     {
       /* Adding infinities with opposite signs yields a NaN.  */
       if (isinf (b) && a->sign != b->sign)
-       return nan ();
+       return makenan ();
       return a;
     }
   if (isinf (b))
@@ -802,7 +802,7 @@ _fpmul_parts ( fp_number_type *  a,
   if (isinf (a))
     {
       if (iszero (b))
-       return nan ();
+       return makenan ();
       a->sign = a->sign != b->sign;
       return a;
     }
@@ -810,7 +810,7 @@ _fpmul_parts ( fp_number_type *  a,
     {
       if (iszero (a))
        {
-         return nan ();
+         return makenan ();
        }
       b->sign = a->sign != b->sign;
       return b;
@@ -988,7 +988,7 @@ _fpdiv_parts (fp_number_type * a,
   if (isinf (a) || iszero (a))
     {
       if (a->class == b->class)
-       return nan ();
+       return makenan ();
       return a;
     }