summaryrefslogtreecommitdiff
path: root/exp2.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-02-15 22:15:38 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-02-15 22:15:38 +0000
commite5473304f5e6523b79f3116cbe97f2f3313edc47 (patch)
tree47c00d9c600d5ef016852c4dc2391c9b08aef55b /exp2.c
parent8c718262f5d515592cbaffa7413cd1671ff6728d (diff)
downloadmpfr-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.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/exp2.c b/exp2.c
index d18926dc4..7756e4321 100644
--- a/exp2.c
+++ b/exp2.c
@@ -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;