diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-02-15 22:15:38 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-02-15 22:15:38 +0000 |
commit | e5473304f5e6523b79f3116cbe97f2f3313edc47 (patch) | |
tree | 47c00d9c600d5ef016852c4dc2391c9b08aef55b /exp2.c | |
parent | 8c718262f5d515592cbaffa7413cd1671ff6728d (diff) | |
download | mpfr-e5473304f5e6523b79f3116cbe97f2f3313edc47.tar.gz |
fixed problems with old K&R compilers (_PROTO missing)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@987 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp2.c')
-rw-r--r-- | exp2.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -26,14 +26,15 @@ MA 02111-1307, USA. */ #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*); -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); +int mpfr_exp2_aux _PROTO ((mpz_t, mpfr_srcptr, int, int*)); +int mpfr_exp2_aux2 _PROTO ((mpz_t, mpfr_srcptr, int, int*)); +mp_exp_t mpz_normalize _PROTO ((mpz_t, mpz_t, int)); +int mpz_normalize2 _PROTO ((mpz_t, mpz_t, int, int)); +int mpfr_exp2 _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t)); /* returns floor(sqrt(n)) */ -unsigned long _mpfr_isqrt (unsigned long n) +unsigned long +_mpfr_isqrt (unsigned long n) { unsigned long s; @@ -45,7 +46,8 @@ unsigned long _mpfr_isqrt (unsigned long n) } /* returns floor(n^(1/3)) */ -unsigned long _mpfr_cuberoot (unsigned long n) +unsigned long +_mpfr_cuberoot (unsigned long n) { double s, is; |