diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-18 09:02:00 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-18 09:02:00 +0000 |
commit | 9c94b291ca1c5929ce7ca2927f7506045278cdc0 (patch) | |
tree | cb2b32a4711bcfd793f8a30fc60de441bc47ee6c /exp2.c | |
parent | 177371d41c4d432af5863e7c053d3e6439e6283d (diff) | |
download | mpfr-9c94b291ca1c5929ce7ca2927f7506045278cdc0.tar.gz |
changed name of mpfr struct fields: _mp_d -> _mpfr_d
(to detect conflicts with mpf)
fixed a few problems in non-STDC headers
moved definitions of mpfr-impl.h to mpfr-test.h and created a real mpfr-impl.h
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@897 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp2.c')
-rw-r--r-- | exp2.c | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -23,11 +23,15 @@ MA 02111-1307, USA. */ #include <stdio.h> #include <math.h> #include "gmp.h" -#include "mpfr.h" #include "gmp-impl.h" +#include "mpfr.h" +#include "mpfr-impl.h" -int mpfr_exp2_aux (mpz_t, mpfr_srcptr, int, int*); -int mpfr_exp2_aux2 (mpz_t, mpfr_srcptr, int, int*); +int mpfr_exp2_aux (mpz_t, mpfr_srcptr, int, int*); +int mpfr_exp2_aux2 (mpz_t, mpfr_srcptr, int, int*); +mp_exp_t mpz_normalize (mpz_t, mpz_t, int); +int mpz_normalize2 (mpz_t, mpz_t, int, int); +int mpfr_exp2 (mpfr_ptr, mpfr_srcptr, mp_rnd_t); #define SWITCH 100 /* number of bits to switch from O(n^(1/2)*M(n)) method to O(n^(1/3)*M(n)) method */ @@ -42,10 +46,11 @@ int mpfr_exp2_aux2 (mpz_t, mpfr_srcptr, int, int*); /* if k = the number of bits of z > q, divides z by 2^(k-q) and returns k-q. Otherwise do nothing and return 0. */ +mp_exp_t #if __STDC__ -mp_exp_t mpz_normalize(mpz_t rop, mpz_t z, int q) +mpz_normalize (mpz_t rop, mpz_t z, int q) #else -mp_exp_t mpz_normalize(rop, z, q) +mpz_normalize (rop, z, q) mpz_t rop; mpz_t z; int q; @@ -70,9 +75,9 @@ mp_exp_t mpz_normalize(rop, z, q) */ int #if __STDC__ -mpz_normalize2(mpz_t rop, mpz_t z, int expz, int target) +mpz_normalize2 (mpz_t rop, mpz_t z, int expz, int target) #else -mpz_normalize2(rop, z, expz, target) +mpz_normalize2 (rop, z, expz, target) mpz_t rop; mpz_t z; int expz; @@ -91,9 +96,9 @@ mpz_normalize2(rop, z, expz, target) */ int #if __STDC__ -mpfr_exp2(mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) +mpfr_exp2 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) #else -mpfr_exp2(y, x, rnd_mode) +mpfr_exp2 (y, x, rnd_mode) mpfr_ptr y; mpfr_srcptr x; mp_rnd_t rnd_mode; |