diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-17 09:14:41 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-17 09:14:41 +0000 |
commit | 657c8e7848620fe245b18d9ebb0d0a7665d0fe58 (patch) | |
tree | d6023e3067bbff709ecb4a6249eb6dc101af6ad3 /libquadmath | |
parent | a9efefe11907d3361fd605273864c22384eb937b (diff) | |
download | gcc-657c8e7848620fe245b18d9ebb0d0a7665d0fe58.tar.gz |
2011-01-17 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168892 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath')
-rw-r--r-- | libquadmath/ChangeLog | 9 | ||||
-rw-r--r-- | libquadmath/quadmath-imp.h | 16 | ||||
-rw-r--r-- | libquadmath/quadmath.h | 10 | ||||
-rw-r--r-- | libquadmath/quadmath_io.c | 20 | ||||
-rw-r--r-- | libquadmath/quadmath_weak.h | 16 |
5 files changed, 40 insertions, 31 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index 0d518f7df79..f5308db895c 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,3 +1,12 @@ +2011-01-17 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. + 2011-01-16 Jakub Jelinek <jakub@redhat.com> PR libfortran/47322 diff --git a/libquadmath/quadmath-imp.h b/libquadmath/quadmath-imp.h index 58e3146e364..db34a92f08f 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 25ef4139918..10a33efdc96 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 f258f720763..ccd023c3c5a 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 23fef22c7a4..f83f566b880 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) |