X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libquadmath%2Fquadmath.h;h=863fe440b23040b204d47ff5ddee444a2476b25a;hb=f24f10bb5247461a0d738a9f84d55ed8a97cb638;hp=25ef413991882818ef12381dfa5526a40526571b;hpb=ff44adf2e118be6db337584d627d3e9637b876d3;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libquadmath/quadmath.h b/libquadmath/quadmath.h index 25ef4139918..863fe440b23 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 -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. */ @@ -132,8 +132,8 @@ extern __complex128 ctanhq (__complex128) __quadmath_throw; /* Prototypes for string <-> __float128 conversion functions */ extern __float128 strtoflt128 (const char *, char **) __quadmath_throw; -extern void quadmath_flt128tostr (char *, size_t, size_t, __float128) - __quadmath_throw; +extern int quadmath_snprintf (char *str, size_t size, + const char *format, ...) __quadmath_throw; /* Macros */ @@ -144,8 +144,9 @@ extern void quadmath_flt128tostr (char *, size_t, size_t, __float128) #define FLT128_MANT_DIG 113 #define FLT128_MIN_EXP (-16381) #define FLT128_MAX_EXP 16384 -/* TODO -- One day, we need to add the following macros: - FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP */ +#define FLT128_DIG 33 +#define FLT128_MIN_10_EXP (-4931) +#define FLT128_MAX_10_EXP 4932 #define HUGE_VALQ __builtin_huge_valq()