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 /exp3.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 'exp3.c')
-rw-r--r-- | exp3.c | 35 |
1 files changed, 20 insertions, 15 deletions
@@ -22,17 +22,22 @@ 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" /* #define DEBUG */ +int mylog2 (int); +int mpfr_exp_rational (mpfr_ptr, mpz_srcptr, int, int); +int mpfr_exp3 (mpfr_ptr, mpfr_srcptr, mp_rnd_t); + int #if __STDC__ -mylog2(int x) +mylog2 (int x) #else -mylog2(x) -int x; +mylog2 (x) + int x; #endif { int i = 0; @@ -42,13 +47,13 @@ int x; int #if __STDC__ -mpfr_exp_rational(mpfr_ptr y,mpz_srcptr p,int r,int m) +mpfr_exp_rational (mpfr_ptr y, mpz_srcptr p, int r, int m) #else -mpfr_exp_rational(y,p,r,m) -mpfr_ptr y; -mpz_srcptr p; -int r; -int m; +mpfr_exp_rational (y, p, r, m) + mpfr_ptr y; + mpz_srcptr p; + int r; + int m; #endif { int n,i,k,j,l; @@ -140,12 +145,12 @@ int m; int #if __STDC__ -mpfr_exp3(mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) +mpfr_exp3 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) #else -mpfr_exp3(y,x,rnd_mode) -mpfr_ptr y; -mpfr_srcptr x; -mp_rnd_t rnd_mode; +mpfr_exp3 (y, x, rnd_mode) + mpfr_ptr y; + mpfr_srcptr x; + mp_rnd_t rnd_mode; #endif { mpfr_t t; |