summaryrefslogtreecommitdiff
path: root/exp_2.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 11:18:00 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 11:18:00 +0000
commit04307d9b1514959cd59b0b5278a19b4ddaecc375 (patch)
tree315b84e839a3950f1d900b9956252d87bc0db738 /exp_2.c
parent937708f95eedc3a3747fe7ea581b783a797f95ed (diff)
downloadmpfr-04307d9b1514959cd59b0b5278a19b4ddaecc375.tar.gz
added year 2001 in copyright line
removed #if __STDC__ git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1526 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp_2.c')
-rw-r--r--exp_2.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/exp_2.c b/exp_2.c
index b7b5686fc..0c8298969 100644
--- a/exp_2.c
+++ b/exp_2.c
@@ -1,7 +1,7 @@
/* mpfr_exp_2 -- exponential of a floating-point number
using Brent's algorithms in O(n^(1/2)*M(n)) and O(n^(1/3)*M(n))
-Copyright (C) 1999-2000 Free Software Foundation.
+Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -73,14 +73,7 @@ _mpfr_cuberoot (unsigned long n)
Otherwise do nothing and return 0.
*/
static mp_exp_t
-#if __STDC__
mpz_normalize (mpz_t rop, mpz_t z, int q)
-#else
-mpz_normalize (rop, z, q)
- mpz_t rop;
- mpz_t z;
- int q;
-#endif
{
int k;
@@ -100,15 +93,7 @@ mpz_normalize (rop, z, q)
Returns target.
*/
static int
-#if __STDC__
mpz_normalize2 (mpz_t rop, mpz_t z, int expz, int target)
-#else
-mpz_normalize2 (rop, z, expz, target)
- mpz_t rop;
- mpz_t z;
- int expz;
- int target;
-#endif
{
if (target > expz) mpz_div_2exp(rop, z, target-expz);
else mpz_mul_2exp(rop, z, expz-target);
@@ -121,14 +106,7 @@ mpz_normalize2 (rop, z, expz, target)
power series. The resulting complexity is O(n^(1/3)*M(n)).
*/
int
-#if __STDC__
mpfr_exp_2 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
-#else
-mpfr_exp_2 (y, x, rnd_mode)
- mpfr_ptr y;
- mpfr_srcptr x;
- mp_rnd_t rnd_mode;
-#endif
{
int n, expx, K, precy, q, k, l, err, exps, inexact;
mpfr_t r, s, t; mpz_t ss;