summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acosh.c3
-rw-r--r--add1.c3
-rw-r--r--add_ui.c3
-rw-r--r--agm.c3
-rw-r--r--asinh.c3
-rw-r--r--clear.c2
-rw-r--r--clears.c2
-rw-r--r--cmp.c3
-rw-r--r--cmp_abs.c3
-rw-r--r--cmp_d.c3
-rw-r--r--cmp_si.c3
-rw-r--r--cmp_ui.c3
-rw-r--r--comparisons.c3
-rw-r--r--const_pi.c3
-rw-r--r--copysign.c3
-rw-r--r--dim.c3
-rw-r--r--div.c3
-rw-r--r--div_2exp.c3
-rw-r--r--div_2si.c3
-rw-r--r--div_2ui.c3
-rw-r--r--dump.c2
-rw-r--r--exceptions.c3
-rw-r--r--exp.c1
-rw-r--r--exp10.c3
-rw-r--r--exp2.c2
-rw-r--r--exp3.c2
-rw-r--r--expm1.c4
-rw-r--r--extract.c3
-rw-r--r--fma.c7
-rw-r--r--get_exp.c3
-rw-r--r--get_z_exp.c3
-rw-r--r--init.c3
-rw-r--r--inits.c2
-rw-r--r--inp_str.c2
-rw-r--r--isinf.c3
-rw-r--r--isnan.c2
-rw-r--r--isnum.c3
-rw-r--r--log1p.c7
-rw-r--r--mpfr-test.h2
-rw-r--r--mpfr.texi4
-rw-r--r--mul.c3
-rw-r--r--mul_2exp.c3
-rw-r--r--mul_2si.c3
-rw-r--r--mul_2ui.c3
-rw-r--r--mul_ui.c3
-rw-r--r--neg.c3
-rw-r--r--next.c3
-rw-r--r--out_str.c2
-rw-r--r--pow.c3
-rw-r--r--pow_si.c5
-rw-r--r--pow_ui.c2
-rw-r--r--powerof2.c3
-rw-r--r--print_rnd_mode.c2
-rw-r--r--random.c4
-rw-r--r--random2.c3
-rw-r--r--rint.c3
-rw-r--r--round_prec.c3
-rw-r--r--set.c3
-rw-r--r--set_dfl_prec.c3
-rw-r--r--set_exp.c3
-rw-r--r--set_inf.c3
-rw-r--r--set_q.c3
-rw-r--r--set_si.c3
-rw-r--r--set_str_raw.c2
-rw-r--r--set_ui.c3
-rw-r--r--set_z.c3
-rw-r--r--setmax.c3
-rw-r--r--setmin.c3
-rw-r--r--sgn.c3
-rw-r--r--sin.c3
-rw-r--r--sin_cos.c3
-rw-r--r--sinh.c8
-rw-r--r--sqrt.c3
-rw-r--r--sqrt_ui.c3
-rw-r--r--sub_ui.c2
-rw-r--r--swap.c4
-rw-r--r--tan.c3
-rw-r--r--tanh.c3
-rw-r--r--uceil_exp2.c2
-rw-r--r--uceil_log2.c3
-rw-r--r--ufloor_log2.c2
-rw-r--r--ui_pow.c3
-rw-r--r--ui_pow_ui.c3
-rw-r--r--ui_sub.c3
-rw-r--r--urandomb.c2
-rw-r--r--volatile.c4
86 files changed, 93 insertions, 166 deletions
diff --git a/acosh.c b/acosh.c
index b2d6f107f..e349dfbaa 100644
--- a/acosh.c
+++ b/acosh.c
@@ -1,6 +1,6 @@
/* mpfr_acosh -- inverse hyperbolic cosine
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of acosh is done by
diff --git a/add1.c b/add1.c
index 9eac7a4b4..0d77a797d 100644
--- a/add1.c
+++ b/add1.c
@@ -1,6 +1,6 @@
/* mpfr_add1 -- internal function to perform a "real" addition
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
Contributed by the Spaces project, INRIA Lorraine.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* compute sign(b) * (|b| + |c|) */
diff --git a/add_ui.c b/add_ui.c
index 989eb7255..b46239636 100644
--- a/add_ui.c
+++ b/add_ui.c
@@ -1,6 +1,6 @@
/* mpfr_add_ui -- add a floating-point number with a machine integer
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/agm.c b/agm.c
index fc555aec6..9dfb54e6f 100644
--- a/agm.c
+++ b/agm.c
@@ -1,6 +1,6 @@
/* mpfr_agm -- arithmetic-geometric mean of two floating-point numbers
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/asinh.c b/asinh.c
index 7d6e9bc65..dc9419d4c 100644
--- a/asinh.c
+++ b/asinh.c
@@ -1,6 +1,6 @@
/* mpfr_asinh -- inverse hyperbolic sine
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of asinh is done by
diff --git a/clear.c b/clear.c
index 45882da17..edffeb17e 100644
--- a/clear.c
+++ b/clear.c
@@ -1,6 +1,6 @@
/* mpfr_clear -- free the memory space allocated for a floating-point number
-Copyright 1999, 2000, 2001 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2004 Free Software Foundation.
This file is part of the MPFR Library.
diff --git a/clears.c b/clears.c
index 10b21cc43..a3d1b29bb 100644
--- a/clears.c
+++ b/clears.c
@@ -1,7 +1,7 @@
/* mpfr_clears -- free the memory space allocated for several
floating-point numbers
-Copyright 2003 Free Software Foundation, Inc.
+Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/cmp.c b/cmp.c
index 21d9d58af..c0d583884 100644
--- a/cmp.c
+++ b/cmp.c
@@ -1,6 +1,6 @@
/* mpfr_cmp -- compare two floating-point numbers
-Copyright 1999, 2001, 2003 Free Software Foundation.
+Copyright 1999, 2001, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* returns 0 iff b = sign(s) * c
diff --git a/cmp_abs.c b/cmp_abs.c
index 68d736175..0607e165a 100644
--- a/cmp_abs.c
+++ b/cmp_abs.c
@@ -1,6 +1,6 @@
/* mpfr_cmpabs -- compare the absolute values of two FP numbers
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* Return a positive value if abs(b) > abs(c), 0 if abs(b) = abs(c), and
diff --git a/cmp_d.c b/cmp_d.c
index b52fa430f..869c3d332 100644
--- a/cmp_d.c
+++ b/cmp_d.c
@@ -1,6 +1,6 @@
/* mpfr_cmp_d -- compare a floating-point number with a double
-Copyright 2003 Free Software Foundation, Inc.
+Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/cmp_si.c b/cmp_si.c
index 39fb9ea3b..c3b405e4f 100644
--- a/cmp_si.c
+++ b/cmp_si.c
@@ -1,7 +1,7 @@
/* mpfr_cmp_si_2exp -- compare a floating-point number with a signed
machine integer multiplied by a power of 2
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/cmp_ui.c b/cmp_ui.c
index eb544bebe..f8ef32677 100644
--- a/cmp_ui.c
+++ b/cmp_ui.c
@@ -1,7 +1,7 @@
/* mpfr_cmp_ui_2exp -- compare a floating-point number with an unsigned
machine integer multiplied by a power of 2
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/comparisons.c b/comparisons.c
index 0af66d2c9..f69c4e0b4 100644
--- a/comparisons.c
+++ b/comparisons.c
@@ -1,6 +1,6 @@
/* comparison predicates
-Copyright 2002, 2003 Free Software Foundation.
+Copyright 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
Contributed by the Spaces project (LORIA/LIP6).
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* Note: these functions currently use mpfr_cmp; they could have their
diff --git a/const_pi.c b/const_pi.c
index d62162adf..0e475fd24 100644
--- a/const_pi.c
+++ b/const_pi.c
@@ -1,6 +1,6 @@
/* mpfr_const_pi -- compute Pi
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/copysign.c b/copysign.c
index e6cda23a6..ec96fac7c 100644
--- a/copysign.c
+++ b/copysign.c
@@ -1,6 +1,6 @@
/* mpfr_copysign -- Produce a value with the magnitude of x and sign of y
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of z with magnitude of x and sign of y
diff --git a/dim.c b/dim.c
index e1d1ad118..90c637aab 100644
--- a/dim.c
+++ b/dim.c
@@ -1,6 +1,6 @@
/* mpfr_dim -- dim of x, y
-Copyright 2001, 2002 Free Software Foundation.
+Copyright 2001, 2002, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of z=dim(x,y)
diff --git a/div.c b/div.c
index 40749eb69..c0167988f 100644
--- a/div.c
+++ b/div.c
@@ -1,6 +1,6 @@
/* mpfr_div -- divide two floating-point numbers
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/div_2exp.c b/div_2exp.c
index f15c34f30..efbc78fec 100644
--- a/div_2exp.c
+++ b/div_2exp.c
@@ -1,6 +1,6 @@
/* mpfr_div_2exp -- divide a floating-point number by a power of two
-Copyright 1999, 2001 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* Obsolete function, use mpfr_div_2ui or mpfr_div_2si instead. */
diff --git a/div_2si.c b/div_2si.c
index 655f4257b..d28a00e33 100644
--- a/div_2si.c
+++ b/div_2si.c
@@ -1,6 +1,6 @@
/* mpfr_div_2si -- divide a floating-point number by a power of two
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/div_2ui.c b/div_2ui.c
index 49675303a..e7fc5cfa1 100644
--- a/div_2ui.c
+++ b/div_2ui.c
@@ -1,6 +1,6 @@
/* mpfr_div_2ui -- divide a floating-point number by a power of two
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/dump.c b/dump.c
index ca0859a76..27f4222ab 100644
--- a/dump.c
+++ b/dump.c
@@ -1,6 +1,6 @@
/* mpfr_dump -- Dump a float to stdout.
-Copyright 1999, 2001 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004 Free Software Foundation, Inc.
(Copied from the GNU MP Library.)
This file is part of the MPFR Library.
diff --git a/exceptions.c b/exceptions.c
index 35d7cbe8e..5f0febd5d 100644
--- a/exceptions.c
+++ b/exceptions.c
@@ -1,6 +1,6 @@
/* Exception flags and utilities.
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
unsigned int __gmpfr_flags = 0;
diff --git a/exp.c b/exp.c
index 687d63415..721ff8e76 100644
--- a/exp.c
+++ b/exp.c
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* #define DEBUG */
diff --git a/exp10.c b/exp10.c
index 920401394..f1f0cb077 100644
--- a/exp10.c
+++ b/exp10.c
@@ -1,6 +1,6 @@
/* mpfr_exp10 -- power of 10 function 10^y
-Copyright 2003 Free Software Foundation.
+Copyright 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/exp2.c b/exp2.c
index cf807a8ba..ef7934ecb 100644
--- a/exp2.c
+++ b/exp2.c
@@ -1,6 +1,6 @@
/* mpfr_exp2 -- power of 2 function 2^y
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
diff --git a/exp3.c b/exp3.c
index 1ea66f927..39a9e701d 100644
--- a/exp3.c
+++ b/exp3.c
@@ -1,6 +1,6 @@
/* mpfr_exp -- exponential of a floating-point number
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/expm1.c b/expm1.c
index f8ce88fa7..3b20c3a87 100644
--- a/expm1.c
+++ b/expm1.c
@@ -1,6 +1,6 @@
/* mpfr_expm1 -- Compute exp(x)-1
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,11 +19,9 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of expm1 is done by
-
expm1(x)=exp(x)-1
*/
diff --git a/extract.c b/extract.c
index 827831999..d35fc0c57 100644
--- a/extract.c
+++ b/extract.c
@@ -1,6 +1,6 @@
/* mpfr_extract -- bit-extraction function for the binary splitting algorithm
-Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* given 0 <= |p| < 1, this function extracts limbs of p and puts them in y.
diff --git a/fma.c b/fma.c
index ecd747ea2..498ca3006 100644
--- a/fma.c
+++ b/fma.c
@@ -1,6 +1,6 @@
/* mpfr_fma -- Floating multiply-add
-Copyright 2001, 2002 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -22,13 +22,10 @@ the file COPYING.LIB. If not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
-
/* The computation of fma of x y and u is done by
- fma(s,x,y,z)= z + x*y = s
-*/
+ fma(s,x,y,z)= z + x*y = s */
int
mpfr_fma (mpfr_ptr s, mpfr_srcptr x, mpfr_srcptr y, mpfr_srcptr z,
diff --git a/get_exp.c b/get_exp.c
index 705e3e513..1fbfaf5fb 100644
--- a/get_exp.c
+++ b/get_exp.c
@@ -1,6 +1,6 @@
/* mpfr_get_exp - get the exponent of a floating-point number
-Copyright 2002, 2003 Free Software Foundation.
+Copyright 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
mp_exp_t
diff --git a/get_z_exp.c b/get_z_exp.c
index d17464367..df7717605 100644
--- a/get_z_exp.c
+++ b/get_z_exp.c
@@ -1,7 +1,7 @@
/* mpfr_get_z_exp -- get a multiple-precision integer and an exponent
from a floating-point number
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/init.c b/init.c
index 7f6b8eefd..5704551da 100644
--- a/init.c
+++ b/init.c
@@ -1,6 +1,6 @@
/* mpfr_init -- initialize a floating-point number
-Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
void
diff --git a/inits.c b/inits.c
index 52bbd1380..4980578fd 100644
--- a/inits.c
+++ b/inits.c
@@ -1,6 +1,6 @@
/* mpfr_inits -- initialize several floating-point numbers
-Copyright 2003 Free Software Foundation, Inc.
+Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/inp_str.c b/inp_str.c
index a32313124..817617bfe 100644
--- a/inp_str.c
+++ b/inp_str.c
@@ -1,7 +1,7 @@
/* mpf_inp_str(dest_float, stream, base) -- Input a number in base
BASE from stdio stream STREAM and store the result in DEST_FLOAT.
-Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
(Copied from GMP, file mpf/inp_str.c)
This file is part of the MPFR Library.
diff --git a/isinf.c b/isinf.c
index af33ddba8..41b75034e 100644
--- a/isinf.c
+++ b/isinf.c
@@ -1,6 +1,6 @@
/* mpfr_inf_p -- check for infinities
-Copyright 2000, 2001 Free Software Foundation.
+Copyright 2000, 2001, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/isnan.c b/isnan.c
index c77d13727..486a4bfe1 100644
--- a/isnan.c
+++ b/isnan.c
@@ -1,6 +1,6 @@
/* mpfr_nan_p -- check for NaN
-Copyright 2000, 2001 Free Software Foundation.
+Copyright 2000, 2001, 2004 Free Software Foundation.
This file is part of the MPFR Library.
diff --git a/isnum.c b/isnum.c
index 51954a932..6176c26b4 100644
--- a/isnum.c
+++ b/isnum.c
@@ -1,6 +1,6 @@
/* mpfr_number_p -- check for ordinary numbers
-Copyright 2000, 2001, 2002 Free Software Foundation.
+Copyright 2000, 2001, 2002, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/log1p.c b/log1p.c
index a4e095255..f0e3e01ed 100644
--- a/log1p.c
+++ b/log1p.c
@@ -1,6 +1,6 @@
/* mpfr_log1p -- Compute log(1+x)
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,13 +19,10 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of log1p is done by
-
- log1p(x)=log(1+x)
- */
+ log1p(x)=log(1+x) */
int
mpfr_log1p (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
diff --git a/mpfr-test.h b/mpfr-test.h
index 0c3c1b71d..aa1e50623 100644
--- a/mpfr-test.h
+++ b/mpfr-test.h
@@ -1,6 +1,6 @@
/* auxiliary functions for MPFR tests.
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/mpfr.texi b/mpfr.texi
index 0381458a3..c816a27d1 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -1198,6 +1198,10 @@ calculations if a lower or equal precision is requested. There is
currently no way to free the cache.
@end deftypefun
+@deftypefun int mpfr_sum (mpfr_t @var{ret}, const mpfr_t* const @var{tab}[], unsigned int @var{n}, mp_rnd_t @var{rnd})
+Set @var{ret} to the sum of all elements of @var{tab} whose size is @var{n}, rounded in the direction @var{rnd}. Warning, @var{tab} is a table of pointer to mpfr_t, not a table of mpfr_t.
+@end deftypefun
+
@node Input and Output Functions, Miscellaneous Functions, Special Functions, MPFR Interface
@comment node-name, next, previous, up
@section Input and Output Functions
diff --git a/mul.c b/mul.c
index c12dc8375..2699d715f 100644
--- a/mul.c
+++ b/mul.c
@@ -1,6 +1,6 @@
/* mpfr_mul -- multiply two floating-point numbers
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/mul_2exp.c b/mul_2exp.c
index 9b552aaa2..c2497e448 100644
--- a/mul_2exp.c
+++ b/mul_2exp.c
@@ -1,6 +1,6 @@
/* mpfr_mul_2exp -- multiply a floating-point number by a power of two
-Copyright 1999, 2001 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* Obsolete function, use mpfr_mul_2ui or mpfr_mul_2si instead. */
diff --git a/mul_2si.c b/mul_2si.c
index 536fe7c63..6817fd706 100644
--- a/mul_2si.c
+++ b/mul_2si.c
@@ -1,6 +1,6 @@
/* mpfr_mul_2si -- multiply a floating-point number by a power of two
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/mul_2ui.c b/mul_2ui.c
index f71bd7fc5..25e3fa5aa 100644
--- a/mul_2ui.c
+++ b/mul_2ui.c
@@ -1,6 +1,6 @@
/* mpfr_mul_2ui -- multiply a floating-point number by a power of two
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/mul_ui.c b/mul_ui.c
index 1e384251e..c3c3edcaa 100644
--- a/mul_ui.c
+++ b/mul_ui.c
@@ -1,6 +1,6 @@
/* mpfr_mul_ui -- multiply a floating-point number by a machine integer
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/neg.c b/neg.c
index 8278bb454..45da82f2e 100644
--- a/neg.c
+++ b/neg.c
@@ -1,6 +1,6 @@
/* mpfr_neg -- change the sign of a floating-point number
-Copyright 1999, 2000, 2001 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2004 Free Software Foundation.
This file is part of the MPFR Library.
Contributed by the Spaces project (LORIA/LIP6).
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/next.c b/next.c
index 847ea505b..d32337f03 100644
--- a/next.c
+++ b/next.c
@@ -1,7 +1,7 @@
/* mpfr_nextabove, mpfr_nextbelow, mpfr_nexttoward -- next representable
floating-point number
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation.
Contributed by the Spaces project, INRIA Lorraine.
This file is part of the MPFR Library.
@@ -21,7 +21,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
static void
diff --git a/out_str.c b/out_str.c
index 07ee037bf..eaf9a12c9 100644
--- a/out_str.c
+++ b/out_str.c
@@ -1,6 +1,6 @@
/* mpfr_out_str -- output a floating-point number to a stream
-Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/pow.c b/pow.c
index a84062884..5782e5fda 100644
--- a/pow.c
+++ b/pow.c
@@ -1,6 +1,6 @@
/* mpfr_pow -- power function x^y
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/pow_si.c b/pow_si.c
index c197806f6..f41b3c8a7 100644
--- a/pow_si.c
+++ b/pow_si.c
@@ -1,6 +1,6 @@
-/* mpfr_pow_si -- power function x^y with y an unsigned int
+/* mpfr_pow_si -- power function x^y with y a signed int
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of y=pow(x,z) is done by
diff --git a/pow_ui.c b/pow_ui.c
index 85c600737..c9158f190 100644
--- a/pow_ui.c
+++ b/pow_ui.c
@@ -1,7 +1,7 @@
/* mpfr_pow_ui-- compute the power of a floating-point
by a machine integer
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/powerof2.c b/powerof2.c
index 22605aeb9..f6d734867 100644
--- a/powerof2.c
+++ b/powerof2.c
@@ -1,6 +1,6 @@
/* mpfr_powerof2_raw -- test whether a floating-point number is a power of 2
-Copyright 2002 Free Software Foundation.
+Copyright 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* This is an internal function and one assumes that x is a real number. */
diff --git a/print_rnd_mode.c b/print_rnd_mode.c
index 49d33a449..16f14d482 100644
--- a/print_rnd_mode.c
+++ b/print_rnd_mode.c
@@ -1,6 +1,6 @@
/* mpfr_print_rnd_mode -- convert a given rounding mode to a string
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
diff --git a/random.c b/random.c
index 7825c9b4b..525caa768 100644
--- a/random.c
+++ b/random.c
@@ -1,6 +1,6 @@
/* mpfr_random -- generate a random floating-point number
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,8 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
-#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
/* Computes a random mpfr in [0, 1[ with precision MPFR_PREC */
diff --git a/random2.c b/random2.c
index cf5ad4b23..9bebc5f84 100644
--- a/random2.c
+++ b/random2.c
@@ -2,7 +2,7 @@
long runs of consecutive ones and zeros in the binary representation.
Intended for testing.
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
(Copied from the GNU MP Library.)
This file is part of the MPFR Library.
@@ -22,7 +22,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/rint.c b/rint.c
index 905d91285..29301a5db 100644
--- a/rint.c
+++ b/rint.c
@@ -1,6 +1,6 @@
/* mpfr_rint -- Round to an integer.
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* This may be a standard rounding mode in the future. */
diff --git a/round_prec.c b/round_prec.c
index c2c5d5d0a..3f133dc4b 100644
--- a/round_prec.c
+++ b/round_prec.c
@@ -1,7 +1,7 @@
/* mpfr_round_raw_generic, mpfr_round_raw2, mpfr_round_raw, mpfr_prec_round,
mpfr_can_round, mpfr_can_round_raw -- various rounding functions
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
#define mpfr_round_raw_generic mpfr_round_raw
diff --git a/set.c b/set.c
index 50ac2511d..bee7e4b3a 100644
--- a/set.c
+++ b/set.c
@@ -1,6 +1,6 @@
/* mpfr_set -- copy of a floating-point number
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* set a to abs(b) * signb: a=b when signb = SIGN(b), a=abs(b) when signb=1 */
diff --git a/set_dfl_prec.c b/set_dfl_prec.c
index 6a1a13773..8411fbbe8 100644
--- a/set_dfl_prec.c
+++ b/set_dfl_prec.c
@@ -1,6 +1,6 @@
/* mpfr_set_default_prec, mpfr_get_default_prec -- set/get default precision
-Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* default is IEEE double precision, i.e. 53 bits */
diff --git a/set_exp.c b/set_exp.c
index f30bd3af9..f17c9fec9 100644
--- a/set_exp.c
+++ b/set_exp.c
@@ -1,6 +1,6 @@
/* mpfr_set_exp - set the exponent of a floating-point number
-Copyright 2002, 2003 Free Software Foundation.
+Copyright 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/set_inf.c b/set_inf.c
index f7afc3bb8..1fe676883 100644
--- a/set_inf.c
+++ b/set_inf.c
@@ -1,6 +1,6 @@
/* mpfr_set_inf -- set a number to plus or minus infinity.
-Copyright 2002 Free Software Foundation.
+Copyright 2002, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
void
diff --git a/set_q.c b/set_q.c
index 8e17e1698..ab5986010 100644
--- a/set_q.c
+++ b/set_q.c
@@ -1,6 +1,6 @@
/* mpfr_set_q -- set a floating-point number from a multiple-precision rational
-Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/set_si.c b/set_si.c
index e48b4454d..edb750462 100644
--- a/set_si.c
+++ b/set_si.c
@@ -1,6 +1,6 @@
/* mpfr_set_si -- set a MPFR number from a machine signed integer
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/set_str_raw.c b/set_str_raw.c
index 9704651a4..6296de0dd 100644
--- a/set_str_raw.c
+++ b/set_str_raw.c
@@ -1,6 +1,6 @@
/* mpfr_set_str_binary -- set a floating-point number from a binary string
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/set_ui.c b/set_ui.c
index ddff4909d..192632a06 100644
--- a/set_ui.c
+++ b/set_ui.c
@@ -1,6 +1,6 @@
/* mpfr_set_ui -- set a MPFR number from a machine unsigned integer
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/set_z.c b/set_z.c
index 70b02d116..6041a84c4 100644
--- a/set_z.c
+++ b/set_z.c
@@ -1,6 +1,6 @@
/* mpfr_set_z -- set a floating-point number from a multiple-precision integer
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/setmax.c b/setmax.c
index 8386e1545..2098b0aef 100644
--- a/setmax.c
+++ b/setmax.c
@@ -1,6 +1,6 @@
/* mpfr_setmax -- maximum representable floating-point number (raw version)
-Copyright 2002, 2003 Free Software Foundation.
+Copyright 2002, 2003, 2004 Free Software Foundation.
Contributed by the Spaces project, INRIA Lorraine.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* Note: the flags are not cleared and the current sign is kept. */
diff --git a/setmin.c b/setmin.c
index 1804c6987..6bdea319f 100644
--- a/setmin.c
+++ b/setmin.c
@@ -1,6 +1,6 @@
/* mpfr_setmin -- minimum representable floating-point number (raw version)
-Copyright 2002, 2003 Free Software Foundation.
+Copyright 2002, 2003, 2004 Free Software Foundation.
Contributed by the Spaces project, INRIA Lorraine.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* Note: the flags are not cleared and the current sign is kept. */
diff --git a/sgn.c b/sgn.c
index 1f326eeeb..ad4028744 100644
--- a/sgn.c
+++ b/sgn.c
@@ -1,6 +1,6 @@
/* mpfr_sgn -- Sign of a floating point number.
-Copyright 2003 Free Software Foundation.
+Copyright 2003, 2004 Free Software Foundation.
Contributed by the Spaces project, INRIA Lorraine.
This file is part of the MPFR Library.
@@ -20,7 +20,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/sin.c b/sin.c
index 432141391..65a339419 100644
--- a/sin.c
+++ b/sin.c
@@ -1,6 +1,6 @@
/* mpfr_sin -- sine of a floating-point number
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* determine the sign of sin(x) using argument reduction.
diff --git a/sin_cos.c b/sin_cos.c
index c5867ee9c..327c5c7db 100644
--- a/sin_cos.c
+++ b/sin_cos.c
@@ -1,6 +1,6 @@
/* mpfr_sin_cos -- sine and cosine of a floating-point number
-Copyright 2002, 2003 Free Software Foundation, Inc.
+Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* (y, z) <- (sin(x), cos(x)), return value is 0 iff both results are exact */
diff --git a/sinh.c b/sinh.c
index f5bacc243..8346fa1c4 100644
--- a/sinh.c
+++ b/sinh.c
@@ -1,6 +1,6 @@
/* mpfr_sinh -- hyperbolic sine
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,14 +19,10 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
-
#include "mpfr-impl.h"
/* The computation of sinh is done by
-
- sinh(x) = 1/2 [e^(x)-e^(-x)]
- */
+ sinh(x) = 1/2 [e^(x)-e^(-x)] */
int
mpfr_sinh (mpfr_ptr y, mpfr_srcptr xt, mp_rnd_t rnd_mode)
diff --git a/sqrt.c b/sqrt.c
index 1061a8bfe..70729e345 100644
--- a/sqrt.c
+++ b/sqrt.c
@@ -1,6 +1,6 @@
/* mpfr_sqrt -- square root of a floating-point number
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* #define DEBUG */
diff --git a/sqrt_ui.c b/sqrt_ui.c
index c16eb42fc..b3b95c1b0 100644
--- a/sqrt_ui.c
+++ b/sqrt_ui.c
@@ -1,6 +1,6 @@
/* mpfr_sqrt_ui -- square root of a machine integer
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/sub_ui.c b/sub_ui.c
index 635672e0a..e2742d08e 100644
--- a/sub_ui.c
+++ b/sub_ui.c
@@ -1,6 +1,6 @@
/* mpfr_sub_ui -- subtract a floating-point number and a machine integer
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/swap.c b/swap.c
index bce94b513..236b53589 100644
--- a/swap.c
+++ b/swap.c
@@ -1,6 +1,6 @@
/* mpfr_swap (U, V) -- Swap U and V.
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -23,7 +23,7 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
-/*
+/* (Outdated rem)
* We now use memcpy instead of copying the structure field by field.
* Thus we avoid copying values that may have trap representations,
* and if we change the structure in the future, this will still be
diff --git a/tan.c b/tan.c
index 03ce70963..731e4cc51 100644
--- a/tan.c
+++ b/tan.c
@@ -1,6 +1,6 @@
/* mpfr_tan -- tangent of a floating-point number
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* computes tan(x) = sign(x)*sqrt(1/cos(x)^2-1) */
diff --git a/tanh.c b/tanh.c
index b837259bd..418ff3b23 100644
--- a/tanh.c
+++ b/tanh.c
@@ -1,6 +1,6 @@
/* mpfr_tanh -- hyperbolic tangent
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* The computation of cosh is done by
diff --git a/uceil_exp2.c b/uceil_exp2.c
index b6b010a21..c2471de26 100644
--- a/uceil_exp2.c
+++ b/uceil_exp2.c
@@ -1,6 +1,6 @@
/* __gmpfr_ceil_exp2 - returns y >= 2^d
-Copyright 1999, 2000, 2001, 2002 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
diff --git a/uceil_log2.c b/uceil_log2.c
index 5d1090e0b..015382778 100644
--- a/uceil_log2.c
+++ b/uceil_log2.c
@@ -1,6 +1,6 @@
/* __gmpfr_ceil_log2 - returns ceil(log(d)/log(2))
-Copyright 1999, 2000, 2001, 2002 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
/* returns ceil(log(d)/log(2)) if d > 0,
diff --git a/ufloor_log2.c b/ufloor_log2.c
index a71e05c0e..fe901dfd5 100644
--- a/ufloor_log2.c
+++ b/ufloor_log2.c
@@ -1,6 +1,6 @@
/* __gmpfr_floor_log2 - returns floor(log(d)/log(2))
-Copyright 1999, 2000, 2001, 2002 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
This file is part of the MPFR Library.
diff --git a/ui_pow.c b/ui_pow.c
index 878de5878..f4ce229e9 100644
--- a/ui_pow.c
+++ b/ui_pow.c
@@ -1,6 +1,6 @@
/* mpfr_ui_pow -- power of n function n^x
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -21,7 +21,6 @@ MA 02111-1307, USA. */
#include <limits.h>
-
#include "mpfr-impl.h"
int
diff --git a/ui_pow_ui.c b/ui_pow_ui.c
index f9c20f8e9..26a3131c1 100644
--- a/ui_pow_ui.c
+++ b/ui_pow_ui.c
@@ -1,6 +1,6 @@
/* mpfr_ui_pow_ui -- compute the power beetween two machine integer
-Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
int
diff --git a/ui_sub.c b/ui_sub.c
index 27361d030..5b280e93f 100644
--- a/ui_sub.c
+++ b/ui_sub.c
@@ -1,6 +1,6 @@
/* mpfr_ui_sub -- subtract a floating-point number from an integer
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
diff --git a/urandomb.c b/urandomb.c
index 789f4ffdc..a64624e04 100644
--- a/urandomb.c
+++ b/urandomb.c
@@ -3,7 +3,7 @@
using STATE as the random state previously initialized by a call to
gmp_randinit().
-Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
diff --git a/volatile.c b/volatile.c
index c5c0c91c9..6a8bac925 100644
--- a/volatile.c
+++ b/volatile.c
@@ -4,7 +4,7 @@
CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
FUTURE MPFR RELEASES.
-Copyright 2003 Free Software Foundation, Inc.
+Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -23,10 +23,8 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-
#include "mpfr-impl.h"
-
/* Only needed sometimes. */
#if WANT_GMPFR_LONGDOUBLE_VOLATILE
long double