summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-07-30 16:47:40 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-07-30 16:47:40 +0000
commite485a681edbad407b8ef172d9149d5ee2b4d91c2 (patch)
tree4836978bb04cd9d574b26eef91bc25a503514905
parentfb87adb3353db2630fda27938b3edb5db0793cd4 (diff)
downloadmpfr-e485a681edbad407b8ef172d9149d5ee2b4d91c2.tar.gz
added copyright notice
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@364 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--add.c22
-rw-r--r--add_ulp.c21
-rw-r--r--agm.c21
-rw-r--r--clear.c21
-rw-r--r--cmp.c35
-rw-r--r--cmp_ui.c21
-rw-r--r--div.c21
-rw-r--r--div3.c21
-rw-r--r--div_2exp.c21
-rw-r--r--div_ui.c21
-rw-r--r--exp.c21
-rw-r--r--get_str.c21
-rw-r--r--init.c21
-rw-r--r--init_set.h21
-rw-r--r--log.c21
-rw-r--r--log2.c21
-rw-r--r--mpfr-impl.h21
-rw-r--r--mpfr.h22
-rw-r--r--mul.c21
-rw-r--r--mul_2exp.c21
-rw-r--r--mul_ui.c21
-rw-r--r--neg.c21
-rw-r--r--out_str.c21
-rw-r--r--pi.c35
-rw-r--r--pow.c22
-rw-r--r--print_raw.c22
-rw-r--r--print_rnd_mode.c21
-rw-r--r--random.c21
-rw-r--r--rnd_mode.c27
-rw-r--r--round.c22
-rw-r--r--set.c20
-rw-r--r--set_d.c22
-rw-r--r--set_dfl_prec.c21
-rw-r--r--set_dfl_rnd.c21
-rw-r--r--set_f.c21
-rw-r--r--set_prec.c21
-rw-r--r--set_si.c21
-rw-r--r--set_str_raw.c21
-rw-r--r--set_z.c21
-rw-r--r--sqrt.c21
-rw-r--r--sqrt3.c21
-rw-r--r--sub.c21
-rw-r--r--tests/tadd.c21
-rw-r--r--tests/tagm.c21
-rw-r--r--tests/tcan_round.c21
-rw-r--r--tests/tcmp.c21
-rw-r--r--tests/tcmp2.c21
-rw-r--r--tests/tcmp_ui.c21
-rw-r--r--tests/tdiv.c21
-rw-r--r--tests/tdiv_ui.c21
-rw-r--r--tests/texp.c21
-rw-r--r--tests/tget_str.c21
-rw-r--r--tests/tlog.c21
-rw-r--r--tests/tlog2.c21
-rw-r--r--tests/tmul.c21
-rw-r--r--tests/tmul_2exp.c21
-rw-r--r--tests/tmul_ui.c21
-rw-r--r--tests/tout_str.c21
-rw-r--r--tests/tpi.c21
-rw-r--r--tests/tround.c21
-rw-r--r--tests/tset_d.c21
-rw-r--r--tests/tset_f.c21
-rw-r--r--tests/tset_si.c21
-rw-r--r--tests/tset_str.c21
-rw-r--r--tests/tset_z.c21
-rw-r--r--tests/tsqrt.c21
-rw-r--r--tests/tzeta.c21
-rw-r--r--zeta.c21
68 files changed, 1443 insertions, 24 deletions
diff --git a/add.c b/add.c
index 7a90926ac..758972d1c 100644
--- a/add.c
+++ b/add.c
@@ -1,7 +1,23 @@
-/* (c) PolKA project, Inria Lorraine */
-/* written by Paul Zimmermann, February 1999 */
-/* to do: - destination may be identical to operands */
+/* mpfr_add -- add two floating-point numbers
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
diff --git a/add_ulp.c b/add_ulp.c
index 246885758..7a8fa6150 100644
--- a/add_ulp.c
+++ b/add_ulp.c
@@ -1,3 +1,24 @@
+/* mpfr_add_one_ulp, mpfr_sub_one_ulp -- add/subtract one unit in last place
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 "gmp.h"
#include "gmp-impl.h"
#include "mpfr.h"
diff --git a/agm.c b/agm.c
index ad992fb74..b1c171592 100644
--- a/agm.c
+++ b/agm.c
@@ -1,3 +1,24 @@
+/* mpfr_agm -- arithmetic-geometric mean of two floating-point numbers
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/clear.c b/clear.c
index d9ce82443..371c1a766 100644
--- a/clear.c
+++ b/clear.c
@@ -1,3 +1,24 @@
+/* mpfr_clear -- free the memory space allocated for a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/cmp.c b/cmp.c
index c12ad4ba6..9d8dc3491 100644
--- a/cmp.c
+++ b/cmp.c
@@ -1,8 +1,31 @@
-/* (c) PolKA project at Inria Lorraine
+/* mpfr_cmp -- compare two floating-point numbers
-written by Paul Zimmermann, February 1999
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
- returns 0 iff b = c
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
+#include "gmp.h"
+#include "gmp-impl.h"
+#include "longlong.h"
+#include "mpfr.h"
+
+/* returns 0 iff b = c
a positive value iff b > c
a negative value iff b < c
@@ -13,12 +36,6 @@ of b and c, i.e. one plus the number of bits shifts to align b and c
*/
-#include <stdio.h>
-#include "gmp.h"
-#include "gmp-impl.h"
-#include "longlong.h"
-#include "mpfr.h"
-
/* #define DEBUG */
/* compares b and sign(s)*c */
diff --git a/cmp_ui.c b/cmp_ui.c
index d75bf54a9..48217a520 100644
--- a/cmp_ui.c
+++ b/cmp_ui.c
@@ -1,4 +1,23 @@
-/* (c) PolKA project at Inria Lorraine */
+/* mpfr_cmp_ui -- compare a floating-point number with a machine integer
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
diff --git a/div.c b/div.c
index 64635b4f8..61b9326de 100644
--- a/div.c
+++ b/div.c
@@ -1,3 +1,24 @@
+/* mpfr_div -- divide two floating-point numbers
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/div3.c b/div3.c
index d661521c3..b33686750 100644
--- a/div3.c
+++ b/div3.c
@@ -1,3 +1,24 @@
+/* mpfr_div3 -- divide two floating-point numbers
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/div_2exp.c b/div_2exp.c
index 961c5d33d..e7602db44 100644
--- a/div_2exp.c
+++ b/div_2exp.c
@@ -1,3 +1,24 @@
+/* mpfr_div_2exp -- divide a floating-point number by a power of two
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/div_ui.c b/div_ui.c
index 17697472f..9e18f9b3f 100644
--- a/div_ui.c
+++ b/div_ui.c
@@ -1,3 +1,24 @@
+/* mpfr_div_ui -- divide a floating-point number by a machine integer
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/exp.c b/exp.c
index 06cd65632..b0ad5115f 100644
--- a/exp.c
+++ b/exp.c
@@ -1,3 +1,24 @@
+/* mpfr_exp -- exponential of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/get_str.c b/get_str.c
index d65e35483..6d389777e 100644
--- a/get_str.c
+++ b/get_str.c
@@ -1,3 +1,24 @@
+/* mpfr_get_str -- output a floating-point number to a string
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/init.c b/init.c
index 3ff7a1ca7..e416511c7 100644
--- a/init.c
+++ b/init.c
@@ -1,3 +1,24 @@
+/* mpfr_init -- initialize a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/init_set.h b/init_set.h
index f779fee12..209fd7b59 100644
--- a/init_set.h
+++ b/init_set.h
@@ -1,3 +1,24 @@
+/* Macros for combined initialization and assignement functions.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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_init_set_si(x, i, p, rnd) {\
mpfr_init2((x), (p)); \
mpfr_set_si((x), (i), (rnd)); \
diff --git a/log.c b/log.c
index 805be02a5..4e2508163 100644
--- a/log.c
+++ b/log.c
@@ -1,3 +1,24 @@
+/* mpfr_log -- natural logarithm of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/log2.c b/log2.c
index 761664d7c..151e0e8cb 100644
--- a/log2.c
+++ b/log2.c
@@ -1,3 +1,24 @@
+/* mpfr_log2 -- compute natural logarithm of 2
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/mpfr-impl.h b/mpfr-impl.h
index c1073f9d0..32a5d759c 100644
--- a/mpfr-impl.h
+++ b/mpfr-impl.h
@@ -1,3 +1,24 @@
+/* Utilities for MPFR developers, not exported.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
/* generate a random double using the whole range of possible values,
diff --git a/mpfr.h b/mpfr.h
index 41110365c..5f3a4d879 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -1,3 +1,24 @@
+/* mpfr.h -- Include file for mpfr.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
/* Definition of rounding modes */
@@ -96,6 +117,7 @@ void mpfr_set_f _PROTO ((mpfr_ptr, mpf_srcptr, unsigned long, char));
void mpfr_set_si _PROTO ((mpfr_ptr, long, unsigned char));
void mpfr_set_ui _PROTO ((mpfr_ptr, unsigned long, unsigned char));
void mpfr_print_raw _PROTO ((mpfr_srcptr));
+void mpfr_random _PROTO ((mpfr_srcptr));
void mpfr_clear _PROTO ((mpfr_ptr));
void mpfr_set_str_raw _PROTO ((mpfr_ptr, char *));
void mpfr_get_str_raw _PROTO ((char *, mpfr_srcptr));
diff --git a/mul.c b/mul.c
index 063bbd3d1..e4d41355e 100644
--- a/mul.c
+++ b/mul.c
@@ -1,4 +1,23 @@
-/* written by Paul Zimmermann, November 1998-January 1999 */
+/* mpfr_mul -- multiply two floating-point numbers
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
diff --git a/mul_2exp.c b/mul_2exp.c
index db4be64c2..31dab2ac6 100644
--- a/mul_2exp.c
+++ b/mul_2exp.c
@@ -1,3 +1,24 @@
+/* mpfr_mul_2exp -- multiply a floating-point number by a power of two
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/mul_ui.c b/mul_ui.c
index f3b759849..b8e928d7f 100644
--- a/mul_ui.c
+++ b/mul_ui.c
@@ -1,3 +1,24 @@
+/* mpfr_mul_ui -- multiply a floating-point number by a machine integer
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/neg.c b/neg.c
index 0f063602f..fff73a65a 100644
--- a/neg.c
+++ b/neg.c
@@ -1,3 +1,24 @@
+/* mpfr_neg -- change the sign of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/out_str.c b/out_str.c
index f2c5dfe62..aeaf64bd2 100644
--- a/out_str.c
+++ b/out_str.c
@@ -1,3 +1,24 @@
+/* mpfr_out_str -- output a floating-point number to a stream
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/pi.c b/pi.c
index 7409aa30b..322a2ab1c 100644
--- a/pi.c
+++ b/pi.c
@@ -1,3 +1,31 @@
+/* mpfr_pi -- compute Pi
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
+#include <math.h>
+#include "gmp.h"
+#include "gmp-impl.h"
+#include "longlong.h"
+#include "mpfr.h"
+
/*
Set x to the value of Pi to precision PREC(x) rounded to direction rnd_mode.
Use the formula giving the binary representation of Pi found by Simon Plouffe
@@ -28,13 +56,6 @@ S(N)-S'(N) <= sum(1, n=0..N-1) = N
so Pi*16^N-S'(N) <= N+1 (as 1/4/N^2 < 1)
*/
-#include <stdio.h>
-#include <math.h>
-#include "gmp.h"
-#include "gmp-impl.h"
-#include "longlong.h"
-#include "mpfr.h"
-
mpfr_t __mpfr_pi; /* stored value of Pi */
int __mpfr_pi_prec=0; /* precision of stored value */
char __mpfr_pi_rnd; /* rounding mode of stored value */
diff --git a/pow.c b/pow.c
index d44d17f79..c53819ec2 100644
--- a/pow.c
+++ b/pow.c
@@ -1,3 +1,25 @@
+/* mpfr_pow_ui, mpfr_ui_pow_ui -- compute the power of a floating-point
+ number or machine integer
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "mpfr.h"
diff --git a/print_raw.c b/print_raw.c
index 515b701f5..4ff68bcaf 100644
--- a/print_raw.c
+++ b/print_raw.c
@@ -1,3 +1,25 @@
+/* mpfr_print_raw -- print the internal binary representation of a
+ floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/print_rnd_mode.c b/print_rnd_mode.c
index 44f78cfcc..a7bc1d06d 100644
--- a/print_rnd_mode.c
+++ b/print_rnd_mode.c
@@ -1,3 +1,24 @@
+/* mpfr_print_rnd_mode -- convert a given rounding mode to a string
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/random.c b/random.c
index 8eaf563c3..e61ddc0b7 100644
--- a/random.c
+++ b/random.c
@@ -1,3 +1,24 @@
+/* mpfr_random -- generate a random floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/rnd_mode.c b/rnd_mode.c
index b4c59d9a0..e457d3c85 100644
--- a/rnd_mode.c
+++ b/rnd_mode.c
@@ -1,11 +1,32 @@
-/* functions to set/get the machine rounding mode,
- this should use the interface from the ISO C9X draft
- (file <fenv.h>) */
+/* mpfr_set_machine_rnd_mode -- set the rounding mode for machine floats
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "mpfr.h"
+/* functions to set/get the machine rounding mode,
+ this should use the interface from the ISO C9X draft
+ (file <fenv.h>) */
+
#ifdef IRIX64
#include <sys/fpu.h>
extern int swapRM();
diff --git a/round.c b/round.c
index f3f5588bd..9fad4c47e 100644
--- a/round.c
+++ b/round.c
@@ -1,3 +1,25 @@
+/* mpfr_round_raw2, mpfr_round_raw, mpfr_round, mpfr_can_round,
+ mpfr_can_round_raw -- various rounding functions
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/set.c b/set.c
index 2406d9782..b4a151dc5 100644
--- a/set.c
+++ b/set.c
@@ -1,3 +1,23 @@
+/* mpfr_set -- copy of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
diff --git a/set_d.c b/set_d.c
index 4971b5010..483c5ff1e 100644
--- a/set_d.c
+++ b/set_d.c
@@ -1,3 +1,25 @@
+/* mpfr_set_d, mpfr_get_d -- convert a multiple precision floating-point number
+ from/to a machine double precision float
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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. */
+
#if __GNUC__ /* gcc "patched" headers seem to omit isnan... */
extern int isnan(double);
#endif
diff --git a/set_dfl_prec.c b/set_dfl_prec.c
index aa7b7b668..aa341be8a 100644
--- a/set_dfl_prec.c
+++ b/set_dfl_prec.c
@@ -1,3 +1,24 @@
+/* mpfr_set_default_prec -- set the default precision
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 "gmp.h"
#include "gmp-impl.h"
diff --git a/set_dfl_rnd.c b/set_dfl_rnd.c
index efef4d388..cf8fd0175 100644
--- a/set_dfl_rnd.c
+++ b/set_dfl_rnd.c
@@ -1,3 +1,24 @@
+/* mpfr_set_default_rounding_mode -- set the default rounding mode
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 "gmp.h"
#include "gmp-impl.h"
diff --git a/set_f.c b/set_f.c
index 9bf6039ee..dd33c0963 100644
--- a/set_f.c
+++ b/set_f.c
@@ -1,3 +1,24 @@
+/* mpfr_set_f -- set a MPFR number from a GNU MPF number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/set_prec.c b/set_prec.c
index 8a3cc0110..d85eac3c3 100644
--- a/set_prec.c
+++ b/set_prec.c
@@ -1,3 +1,24 @@
+/* mpfr_set_prec -- reset the precision of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/set_si.c b/set_si.c
index ed9da30e2..b2d916cd1 100644
--- a/set_si.c
+++ b/set_si.c
@@ -1,3 +1,24 @@
+/* mpfr_set_si, mpfr_set_ui -- set a MPFR number from a machine integer
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/set_str_raw.c b/set_str_raw.c
index 5da0c3e89..53b319821 100644
--- a/set_str_raw.c
+++ b/set_str_raw.c
@@ -1,3 +1,24 @@
+/* mpfr_set_str_raw -- set a floating-point number from a binary string
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#ifdef HAS_STRING_H
diff --git a/set_z.c b/set_z.c
index 55a23b56f..5887bb850 100644
--- a/set_z.c
+++ b/set_z.c
@@ -1,3 +1,24 @@
+/* mpfr_set_z -- set a floating-point number from a multiple-precision integer
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
diff --git a/sqrt.c b/sqrt.c
index 611e99531..355f8e2bd 100644
--- a/sqrt.c
+++ b/sqrt.c
@@ -1,3 +1,24 @@
+/* mpfr_sqrt -- square root of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/sqrt3.c b/sqrt3.c
index 2b56b3ffe..45f07551e 100644
--- a/sqrt3.c
+++ b/sqrt3.c
@@ -1,3 +1,24 @@
+/* mpfr_sqrt3 -- square root of a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/sub.c b/sub.c
index 7f4495bd5..ee2939cbf 100644
--- a/sub.c
+++ b/sub.c
@@ -1,3 +1,24 @@
+/* mpfr_sub -- subtract two floating-point numbers
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/tests/tadd.c b/tests/tadd.c
index 6f2ea79c0..b0ce01648 100644
--- a/tests/tadd.c
+++ b/tests/tadd.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_add and mpfr_sub.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 DEBUG */
/* #define VERBOSE */
diff --git a/tests/tagm.c b/tests/tagm.c
index 228920270..a1583a81b 100644
--- a/tests/tagm.c
+++ b/tests/tagm.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_agm.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/tcan_round.c b/tests/tcan_round.c
index ccff1daec..db42e6668 100644
--- a/tests/tcan_round.c
+++ b/tests/tcan_round.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_can_round.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tcmp.c b/tests/tcmp.c
index 1cc814b7c..d4a6d05d7 100644
--- a/tests/tcmp.c
+++ b/tests/tcmp.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_cmp.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include <math.h>
diff --git a/tests/tcmp2.c b/tests/tcmp2.c
index 42be28ee8..951257ff6 100644
--- a/tests/tcmp2.c
+++ b/tests/tcmp2.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_cmp2.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include <math.h>
diff --git a/tests/tcmp_ui.c b/tests/tcmp_ui.c
index 901f047d2..60156566b 100644
--- a/tests/tcmp_ui.c
+++ b/tests/tcmp_ui.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_cmp_ui.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include <math.h>
diff --git a/tests/tdiv.c b/tests/tdiv.c
index d2137e643..a6b628c6b 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_div.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/tdiv_ui.c b/tests/tdiv_ui.c
index d5beb22cf..c42b0ea82 100644
--- a/tests/tdiv_ui.c
+++ b/tests/tdiv_ui.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_div_ui.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/texp.c b/tests/texp.c
index f5adf6393..2744f358f 100644
--- a/tests/texp.c
+++ b/tests/texp.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_exp.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tget_str.c b/tests/tget_str.c
index 3e2d0b7e1..ce1f81d6c 100644
--- a/tests/tget_str.c
+++ b/tests/tget_str.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_get_str.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/tlog.c b/tests/tlog.c
index 701fd228f..600ac6cc6 100644
--- a/tests/tlog.c
+++ b/tests/tlog.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_log.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/tests/tlog2.c b/tests/tlog2.c
index d0815c25b..967a16259 100644
--- a/tests/tlog2.c
+++ b/tests/tlog2.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_log2.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdlib.h>
#include "gmp.h"
#include "mpfr.h"
diff --git a/tests/tmul.c b/tests/tmul.c
index 66025addc..38be7db42 100644
--- a/tests/tmul.c
+++ b/tests/tmul.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_mul.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tmul_2exp.c b/tests/tmul_2exp.c
index ad7f0ef56..a5a3b2186 100644
--- a/tests/tmul_2exp.c
+++ b/tests/tmul_2exp.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_mul_2exp.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include <time.h>
diff --git a/tests/tmul_ui.c b/tests/tmul_ui.c
index de039632d..9da76c5f6 100644
--- a/tests/tmul_ui.c
+++ b/tests/tmul_ui.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_mul_ui.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tout_str.c b/tests/tout_str.c
index 614f5a929..d09e637a8 100644
--- a/tests/tout_str.c
+++ b/tests/tout_str.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_out_str.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/tpi.c b/tests/tpi.c
index 748e90010..1cb743790 100644
--- a/tests/tpi.c
+++ b/tests/tpi.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_pi.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdlib.h>
#include "gmp.h"
#include "mpfr.h"
diff --git a/tests/tround.c b/tests/tround.c
index 1a743781e..8c672b566 100644
--- a/tests/tround.c
+++ b/tests/tround.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_round.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tset_d.c b/tests/tset_d.c
index 3965c70e6..b96a1dd55 100644
--- a/tests/tset_d.c
+++ b/tests/tset_d.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_set_d and mpfr_get_d.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include <time.h>
diff --git a/tests/tset_f.c b/tests/tset_f.c
index 50d627d88..31f63615c 100644
--- a/tests/tset_f.c
+++ b/tests/tset_f.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_set_f.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tset_si.c b/tests/tset_si.c
index 7d3214d2c..9dc60847b 100644
--- a/tests/tset_si.c
+++ b/tests/tset_si.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_set_si and mpfr_set_ui.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tset_str.c b/tests/tset_str.c
index ecc7a0c41..762495864 100644
--- a/tests/tset_str.c
+++ b/tests/tset_str.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_set_str.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <stdlib.h>
#include "gmp.h"
diff --git a/tests/tset_z.c b/tests/tset_z.c
index 42cef1645..780386446 100644
--- a/tests/tset_z.c
+++ b/tests/tset_z.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_set_z.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdlib.h>
#include <unistd.h>
#include "gmp.h"
diff --git a/tests/tsqrt.c b/tests/tsqrt.c
index 4e4a29e2c..fcb380e64 100644
--- a/tests/tsqrt.c
+++ b/tests/tsqrt.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_sqrt.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/tzeta.c b/tests/tzeta.c
index 2dfe0b673..45129f4ae 100644
--- a/tests/tzeta.c
+++ b/tests/tzeta.c
@@ -1,3 +1,24 @@
+/* Test file for mpfr_zeta.
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"
diff --git a/zeta.c b/zeta.c
index fd517161a..5250a9dd7 100644
--- a/zeta.c
+++ b/zeta.c
@@ -1,3 +1,24 @@
+/* mpfr_zeta -- Riemann Zeta function at a floating-point number
+
+Copyright (C) 1999 PolKA project, Inria Lorraine and Loria
+
+This file is part of the MPFR Library.
+
+The MPFR Library 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.
+
+The MPFR Library 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 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 <stdio.h>
#include <math.h>
#include "gmp.h"