summaryrefslogtreecommitdiff
path: root/agm.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 /agm.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 'agm.c')
-rw-r--r--agm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/agm.c b/agm.c
index b9a3b435f..27a992769 100644
--- a/agm.c
+++ b/agm.c
@@ -26,7 +26,8 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
/* returns ceil(log(d)/log(2)) */
-long _mpfr_ceil_log2 (double d)
+long
+_mpfr_ceil_log2 (double d)
{
long exp;
union ieee_double_extract x;
@@ -39,7 +40,8 @@ long _mpfr_ceil_log2 (double d)
}
/* returns floor(log(d)/log(2)) */
-long _mpfr_floor_log2 (double d)
+long
+_mpfr_floor_log2 (double d)
{
union ieee_double_extract x;
@@ -48,7 +50,8 @@ long _mpfr_floor_log2 (double d)
}
/* returns y >= 2^d */
-double _mpfr_ceil_exp2 (double d)
+double
+_mpfr_ceil_exp2 (double d)
{
long exp;
union ieee_double_extract x;