summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/log.c b/log.c
index b0f2c273a..777b8cc94 100644
--- a/log.c
+++ b/log.c
@@ -16,10 +16,19 @@
*/
-void mpfr_log(mpfr_ptr r, mpfr_srcptr a, unsigned char rnd_mode) {
+void
+#if __STDC__
+mpfr_log(mpfr_ptr r, mpfr_srcptr a, unsigned char rnd_mode)
+#else
+mpfr_log()
+ mpfr_ptr r;
+ mpfr_srcptr a;
+ unsigned char rnd_mode;
+#endif
+{
int p, m, q, bool, err;
mpfr_t cst, rapport, agm, tmp1, tmp2, s, mm;
- double x, ref;
+ double ref;
/* If a is NaN, the result is NaN */
if (FLAG_NAN(a))