Patchwork [Quadmath] Update to headers (PR 46817)

login
register
mail settings
Submitter Tobias Burnus
Date Jan. 16, 2011, 5:49 p.m.
Message ID <4D332FAD.7070802@net-b.de>
Download mbox | patch
Permalink /patch/79091/
State New
Headers show

Comments

Tobias Burnus - Jan. 16, 2011, 5:49 p.m.
I intent to commit the patch as obvious in about a day.

When I added the copyright header to the files lacking them (written by 
FX and myself for GCC's libquadmath), I seemingly missed to change 
"libiberty" to "libquadmath" (cf. PR 46817). Additionally, I take the 
opportunity to change the "//" comments to "/* */" comments and to add 
"2011" to the copyright year.

Tobias

Patch

2011-01-16  Tobias Burnus  <burnus@net-b.de>

	PR fortran/46817
	* quadmath-imp.h: Refer to libquadmath not ot libiberty,
	bump copyright year and use /**/ instead of // comments.
	* quadmath.h: Ditto.
	* quadmath-weak.h: Ditto.
	* quadmath_io.c: Ditto.

diff --git a/libquadmath/quadmath-imp.h b/libquadmath/quadmath-imp.h
index 58e3146..db34a92 100644
--- a/libquadmath/quadmath-imp.h
+++ b/libquadmath/quadmath-imp.h
@@ -1,20 +1,20 @@ 
 /* GCC Quad-Precision Math Library
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    Written by Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
+This file is part of the libquadmath library.
+Libquadmath is free software; you can redistribute it and/or
 modify it under the terms of the GNU Library General Public
 License as published by the Free Software Foundation; either
 version 2 of the License, or (at your option) any later version.
 
-Libiberty is distributed in the hope that it will be useful,
+Libquadmath is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Library General Public License for more details.
 
 You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB.  If
+License along with libquadmath; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
@@ -27,7 +27,7 @@  Boston, MA 02110-1301, USA.  */
 #include "config.h"
 
 
-// Prototypes for internal functions
+/* Prototypes for internal functions.  */
 extern int32_t __quadmath_rem_pio2q (__float128, __float128 *);
 extern void __quadmath_kernel_sincosq (__float128, __float128, __float128 *,
 				       __float128 *, int);
@@ -36,13 +36,13 @@  extern __float128 __quadmath_kernel_cosq (__float128, __float128);
 
 
 
-// Frankly, if you have __float128, you have 64-bit integers, right?
+/* Frankly, if you have __float128, you have 64-bit integers, right?  */
 #ifndef UINT64_C
 # error "No way!"
 #endif
 
 
-// Main union type we use to manipulate the floating-point type
+/* Main union type we use to manipulate the floating-point type.  */
 typedef union
 {
   __float128 value;
diff --git a/libquadmath/quadmath.h b/libquadmath/quadmath.h
index 25ef413..10a33ef 100644
--- a/libquadmath/quadmath.h
+++ b/libquadmath/quadmath.h
@@ -1,20 +1,20 @@ 
 /* GCC Quad-Precision Math Library
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    Written by Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
+This file is part of the libquadmath library.
+Libquadmath is free software; you can redistribute it and/or
 modify it under the terms of the GNU Library General Public
 License as published by the Free Software Foundation; either
 version 2 of the License, or (at your option) any later version.
 
-Libiberty is distributed in the hope that it will be useful,
+Libquadmath is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Library General Public License for more details.
 
 You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB.  If
+License along with libquadmath; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
diff --git a/libquadmath/quadmath_io.c b/libquadmath/quadmath_io.c
index f258f72..ccd023c 100644
--- a/libquadmath/quadmath_io.c
+++ b/libquadmath/quadmath_io.c
@@ -1,20 +1,20 @@ 
 /* GCC Quad-Precision Math Library
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    Written by Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
+This file is part of the libquadmath library.
+Libquadmath is free software; you can redistribute it and/or
 modify it under the terms of the GNU Library General Public
 License as published by the Free Software Foundation; either
 version 2 of the License, or (at your option) any later version.
 
-Libiberty is distributed in the hope that it will be useful,
+Libquadmath is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Library General Public License for more details.
 
 You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB.  If
+License along with libquadmath; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
@@ -37,19 +37,19 @@  format (char * res, const __float128 x, size_t n)
   g_Qfmt (buffer, &x, n + 1, sizeof(buffer) - 3);
   p = buffer + (*buffer == '-' ? 1 : 0);
 
-  // The sign is the easiest part
+  /* The sign is the easiest part.  */
   res[0] = (signbitq (x) ? '-' : '+');
 
   if (*p == '.')
   {
-    // We have a number smaller than 1, without exponent
+    /* We have a number smaller than 1, without exponent.  */
     int exp = 0;
     char *c;
 
     for (c = p+1; *c == '0'; c++)
       exp++;
 
-    // We move the string "exp" characters left
+    /* We move the string "exp" characters left.  */
     size_t l = strlen (p+1+exp);
     memcpy (res + 2, p + 1 + exp, l);
     memset (res + 2 + l, '0', n - l + 1);
@@ -61,7 +61,7 @@  format (char * res, const __float128 x, size_t n)
     return;
   }
 
-  // Now, do we already have an exponent
+  /* Now, do we already have an exponent.  */
   char *c;
   for (c = p; *c && *c != 'e'; c++)
     ;
@@ -81,7 +81,7 @@  format (char * res, const __float128 x, size_t n)
   }
   else
   {
-    // If we have no exponent, normalize and add the exponent
+    /* If we have no exponent, normalize and add the exponent.  */
     for (c = p; *c && *c != '.'; c++)
       ;
 
diff --git a/libquadmath/quadmath_weak.h b/libquadmath/quadmath_weak.h
index 23fef22..f83f566 100644
--- a/libquadmath/quadmath_weak.h
+++ b/libquadmath/quadmath_weak.h
@@ -1,20 +1,20 @@ 
 /* GCC Quad-Precision Math Library
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    Written by Tobias Burnus  <burnus@net-b.de>
 
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
+This file is part of the libquadmath library.
+Libquadmath is free software; you can redistribute it and/or
 modify it under the terms of the GNU Library General Public
 License as published by the Free Software Foundation; either
 version 2 of the License, or (at your option) any later version.
 
-Libiberty is distributed in the hope that it will be useful,
+Libquadmath is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Library General Public License for more details.
 
 You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB.  If
+License along with libquadmath; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
@@ -35,7 +35,7 @@  Boston, MA 02110-1301, USA.  */
 /* __qmath_foo is a weak reference to symbol foo.  */
 #define __qmath3(name) __qmath2(__qmath_ ## name,name,name)
 
-// Prototypes for real functions
+/* Prototypes for real functions.  */
 __qmath3 (acosq)
 __qmath3 (acoshq)
 __qmath3 (asinq)
@@ -103,7 +103,7 @@  __qmath3 (y1q)
 __qmath3 (ynq)
 
 
-// Prototypes for complex functions
+/* Prototypes for complex functions.  */
 __qmath3 (cabsq)
 __qmath3 (cargq)
 __qmath3 (cimagq)
@@ -130,7 +130,7 @@  __qmath3 (ctanq)
 __qmath3 (ctanhq)
 
 
-// Prototypes for string <-> flt128 conversion functions
+/* Prototypes for string <-> flt128 conversion functions.  */
 __qmath3 (strtoflt128)
 __qmath3 (quadmath_flt128tostr)