summaryrefslogtreecommitdiff
path: root/src/mpfr-impl.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-24 15:48:56 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-24 15:48:56 +0000
commit2966286ed66a257e4edf122a87db880ceb3e4f33 (patch)
tree18f1e7221eaa226c19eef4cc63891426cb9d69db /src/mpfr-impl.h
parent44710cf876a1c1b12d9cfb94245b9037b4b0b11e (diff)
downloadmpfr-2966286ed66a257e4edf122a87db880ceb3e4f33.tar.gz
Removed _MPFR_PROTO with the following Perl script on the .h files.
while (<>) { if ($c) { die if /_MPFR_PROTO/; s/^( {$c}) */$1/; s/\) *\)/)/ and undef $c } elsif (s/^(.*)(_MPFR_PROTO *\()\(/$1(/) { s/\) *\)/)/ or $c = 1 + length $1 } print } git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10356 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-impl.h')
-rw-r--r--src/mpfr-impl.h176
1 files changed, 88 insertions, 88 deletions
diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h
index 61d84c6f4..074d6da6a 100644
--- a/src/mpfr-impl.h
+++ b/src/mpfr-impl.h
@@ -722,7 +722,7 @@ static double double_zero = 0.0;
optimizing anything. */
#ifdef WANT_LONGDOUBLE_VOLATILE
# ifdef volatile
-__MPFR_DECLSPEC long double __gmpfr_longdouble_volatile _MPFR_PROTO ((long double)) MPFR_CONST_ATTR;
+__MPFR_DECLSPEC long double __gmpfr_longdouble_volatile (long double) MPFR_CONST_ATTR;
# define LONGDOUBLE_VOLATILE(x) (__gmpfr_longdouble_volatile (x))
# define WANT_GMPFR_LONGDOUBLE_VOLATILE 1
# else
@@ -2019,126 +2019,126 @@ extern "C" {
#endif
MPFR_COLD_FUNCTION_ATTR __MPFR_DECLSPEC int
- mpfr_underflow _MPFR_PROTO ((mpfr_ptr, mpfr_rnd_t, int));
+ mpfr_underflow (mpfr_ptr, mpfr_rnd_t, int);
MPFR_COLD_FUNCTION_ATTR __MPFR_DECLSPEC int
- mpfr_overflow _MPFR_PROTO ((mpfr_ptr, mpfr_rnd_t, int));
+ mpfr_overflow (mpfr_ptr, mpfr_rnd_t, int);
-__MPFR_DECLSPEC int mpfr_add1 _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,
- mpfr_srcptr, mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_sub1 _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,
- mpfr_srcptr, mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_add1sp _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,
- mpfr_srcptr, mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_sub1sp _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,
- mpfr_srcptr, mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_can_round_raw _MPFR_PROTO ((const mp_limb_t *,
- mp_size_t, int, mpfr_exp_t, mpfr_rnd_t, mpfr_rnd_t, mpfr_prec_t));
+__MPFR_DECLSPEC int mpfr_add1 (mpfr_ptr, mpfr_srcptr,
+ mpfr_srcptr, mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_sub1 (mpfr_ptr, mpfr_srcptr,
+ mpfr_srcptr, mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_add1sp (mpfr_ptr, mpfr_srcptr,
+ mpfr_srcptr, mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_sub1sp (mpfr_ptr, mpfr_srcptr,
+ mpfr_srcptr, mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_can_round_raw (const mp_limb_t *,
+ mp_size_t, int, mpfr_exp_t, mpfr_rnd_t, mpfr_rnd_t, mpfr_prec_t);
-__MPFR_DECLSPEC int mpfr_cmp2 _MPFR_PROTO ((mpfr_srcptr, mpfr_srcptr,
- mpfr_prec_t *));
+__MPFR_DECLSPEC int mpfr_cmp2 (mpfr_srcptr, mpfr_srcptr,
+ mpfr_prec_t *);
-__MPFR_DECLSPEC long __gmpfr_ceil_log2 _MPFR_PROTO ((double));
-__MPFR_DECLSPEC long __gmpfr_floor_log2 _MPFR_PROTO ((double));
-__MPFR_DECLSPEC double __gmpfr_ceil_exp2 _MPFR_PROTO ((double));
-__MPFR_DECLSPEC unsigned long __gmpfr_isqrt _MPFR_PROTO ((unsigned long));
-__MPFR_DECLSPEC unsigned long __gmpfr_cuberoot _MPFR_PROTO ((unsigned long));
-__MPFR_DECLSPEC int __gmpfr_int_ceil_log2 _MPFR_PROTO ((unsigned long));
+__MPFR_DECLSPEC long __gmpfr_ceil_log2 (double);
+__MPFR_DECLSPEC long __gmpfr_floor_log2 (double);
+__MPFR_DECLSPEC double __gmpfr_ceil_exp2 (double);
+__MPFR_DECLSPEC unsigned long __gmpfr_isqrt (unsigned long);
+__MPFR_DECLSPEC unsigned long __gmpfr_cuberoot (unsigned long);
+__MPFR_DECLSPEC int __gmpfr_int_ceil_log2 (unsigned long);
-__MPFR_DECLSPEC mpfr_exp_t mpfr_ceil_mul _MPFR_PROTO ((mpfr_exp_t, int, int));
+__MPFR_DECLSPEC mpfr_exp_t mpfr_ceil_mul (mpfr_exp_t, int, int);
-__MPFR_DECLSPEC int mpfr_exp_2 _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_exp_3 _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_powerof2_raw _MPFR_PROTO ((mpfr_srcptr));
+__MPFR_DECLSPEC int mpfr_exp_2 (mpfr_ptr, mpfr_srcptr,mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_exp_3 (mpfr_ptr, mpfr_srcptr,mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_powerof2_raw (mpfr_srcptr);
-__MPFR_DECLSPEC int mpfr_pow_general _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,
- mpfr_srcptr, mpfr_rnd_t, int, mpfr_save_expo_t *));
+__MPFR_DECLSPEC int mpfr_pow_general (mpfr_ptr, mpfr_srcptr,
+ mpfr_srcptr, mpfr_rnd_t, int, mpfr_save_expo_t *);
-__MPFR_DECLSPEC void mpfr_setmax _MPFR_PROTO ((mpfr_ptr, mpfr_exp_t));
-__MPFR_DECLSPEC void mpfr_setmin _MPFR_PROTO ((mpfr_ptr, mpfr_exp_t));
+__MPFR_DECLSPEC void mpfr_setmax (mpfr_ptr, mpfr_exp_t);
+__MPFR_DECLSPEC void mpfr_setmin (mpfr_ptr, mpfr_exp_t);
-__MPFR_DECLSPEC long mpfr_mpn_exp _MPFR_PROTO ((mp_limb_t *, mpfr_exp_t *, int,
- mpfr_exp_t, size_t));
+__MPFR_DECLSPEC long mpfr_mpn_exp (mp_limb_t *, mpfr_exp_t *, int,
+ mpfr_exp_t, size_t);
#ifdef _MPFR_H_HAVE_FILE
-__MPFR_DECLSPEC void mpfr_fprint_binary _MPFR_PROTO ((FILE *, mpfr_srcptr));
+__MPFR_DECLSPEC void mpfr_fprint_binary (FILE *, mpfr_srcptr);
#endif
-__MPFR_DECLSPEC void mpfr_print_binary _MPFR_PROTO ((mpfr_srcptr));
-__MPFR_DECLSPEC void mpfr_print_mant_binary _MPFR_PROTO ((const char*,
- const mp_limb_t*, mpfr_prec_t));
-__MPFR_DECLSPEC void mpfr_set_str_binary _MPFR_PROTO((mpfr_ptr, const char*));
-
-__MPFR_DECLSPEC int mpfr_round_raw _MPFR_PROTO ((mp_limb_t *,
- const mp_limb_t *, mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t, int *));
-__MPFR_DECLSPEC int mpfr_round_raw_2 _MPFR_PROTO ((const mp_limb_t *,
- mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t));
+__MPFR_DECLSPEC void mpfr_print_binary (mpfr_srcptr);
+__MPFR_DECLSPEC void mpfr_print_mant_binary (const char*,
+ const mp_limb_t*, mpfr_prec_t);
+__MPFR_DECLSPEC void mpfr_set_str_binary (mpfr_ptr, const char*);
+
+__MPFR_DECLSPEC int mpfr_round_raw (mp_limb_t *,
+ const mp_limb_t *, mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t, int *);
+__MPFR_DECLSPEC int mpfr_round_raw_2 (const mp_limb_t *,
+ mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t);
/* No longer defined (see round_prec.c).
Uncomment if it needs to be defined again.
-__MPFR_DECLSPEC int mpfr_round_raw_3 _MPFR_PROTO ((const mp_limb_t *,
- mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t, int *));
+__MPFR_DECLSPEC int mpfr_round_raw_3 (const mp_limb_t *,
+ mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t, int *);
*/
-__MPFR_DECLSPEC int mpfr_round_raw_4 _MPFR_PROTO ((mp_limb_t *,
- const mp_limb_t *, mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t));
+__MPFR_DECLSPEC int mpfr_round_raw_4 (mp_limb_t *,
+ const mp_limb_t *, mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t);
#define mpfr_round_raw2(xp, xn, neg, r, prec) \
mpfr_round_raw_2((xp),(xn)*GMP_NUMB_BITS,(neg),(prec),(r))
-__MPFR_DECLSPEC int mpfr_check _MPFR_PROTO ((mpfr_srcptr));
+__MPFR_DECLSPEC int mpfr_check (mpfr_srcptr);
-__MPFR_DECLSPEC int mpfr_get_cputime _MPFR_PROTO ((void));
+__MPFR_DECLSPEC int mpfr_get_cputime (void);
-__MPFR_DECLSPEC void mpfr_nexttozero _MPFR_PROTO ((mpfr_ptr));
-__MPFR_DECLSPEC void mpfr_nexttoinf _MPFR_PROTO ((mpfr_ptr));
+__MPFR_DECLSPEC void mpfr_nexttozero (mpfr_ptr);
+__MPFR_DECLSPEC void mpfr_nexttoinf (mpfr_ptr);
-__MPFR_DECLSPEC int mpfr_const_pi_internal _MPFR_PROTO ((mpfr_ptr,mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_const_log2_internal _MPFR_PROTO((mpfr_ptr,mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_const_euler_internal _MPFR_PROTO((mpfr_ptr, mpfr_rnd_t));
-__MPFR_DECLSPEC int mpfr_const_catalan_internal _MPFR_PROTO((mpfr_ptr, mpfr_rnd_t));
+__MPFR_DECLSPEC int mpfr_const_pi_internal (mpfr_ptr,mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_const_log2_internal (mpfr_ptr,mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_const_euler_internal (mpfr_ptr, mpfr_rnd_t);
+__MPFR_DECLSPEC int mpfr_const_catalan_internal (mpfr_ptr, mpfr_rnd_t);
#if 0
-__MPFR_DECLSPEC void mpfr_init_cache _MPFR_PROTO ((mpfr_cache_t,
- int(*)(mpfr_ptr,mpfr_rnd_t)));
+__MPFR_DECLSPEC void mpfr_init_cache (mpfr_cache_t,
+ int(*)(mpfr_ptr,mpfr_rnd_t));
#endif
-__MPFR_DECLSPEC void mpfr_clear_cache _MPFR_PROTO ((mpfr_cache_t));
-__MPFR_DECLSPEC int mpfr_cache _MPFR_PROTO ((mpfr_ptr, mpfr_cache_t,
- mpfr_rnd_t));
-
-__MPFR_DECLSPEC void mpfr_mulhigh_n _MPFR_PROTO ((mpfr_limb_ptr,
- mpfr_limb_srcptr, mpfr_limb_srcptr, mp_size_t));
-__MPFR_DECLSPEC void mpfr_mullow_n _MPFR_PROTO ((mpfr_limb_ptr,
- mpfr_limb_srcptr, mpfr_limb_srcptr, mp_size_t));
-__MPFR_DECLSPEC void mpfr_sqrhigh_n _MPFR_PROTO ((mpfr_limb_ptr,
- mpfr_limb_srcptr, mp_size_t));
-__MPFR_DECLSPEC mp_limb_t mpfr_divhigh_n _MPFR_PROTO ((mpfr_limb_ptr,
- mpfr_limb_ptr, mpfr_limb_ptr, mp_size_t));
-
-__MPFR_DECLSPEC int mpfr_round_p _MPFR_PROTO ((mp_limb_t *, mp_size_t,
- mpfr_exp_t, mpfr_prec_t));
-
-__MPFR_DECLSPEC int mpfr_round_near_x _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr,
- mpfr_uexp_t, int,
- mpfr_rnd_t));
+__MPFR_DECLSPEC void mpfr_clear_cache (mpfr_cache_t);
+__MPFR_DECLSPEC int mpfr_cache (mpfr_ptr, mpfr_cache_t,
+ mpfr_rnd_t);
+
+__MPFR_DECLSPEC void mpfr_mulhigh_n (mpfr_limb_ptr,
+ mpfr_limb_srcptr, mpfr_limb_srcptr, mp_size_t);
+__MPFR_DECLSPEC void mpfr_mullow_n (mpfr_limb_ptr,
+ mpfr_limb_srcptr, mpfr_limb_srcptr, mp_size_t);
+__MPFR_DECLSPEC void mpfr_sqrhigh_n (mpfr_limb_ptr,
+ mpfr_limb_srcptr, mp_size_t);
+__MPFR_DECLSPEC mp_limb_t mpfr_divhigh_n (mpfr_limb_ptr,
+ mpfr_limb_ptr, mpfr_limb_ptr, mp_size_t);
+
+__MPFR_DECLSPEC int mpfr_round_p (mp_limb_t *, mp_size_t,
+ mpfr_exp_t, mpfr_prec_t);
+
+__MPFR_DECLSPEC int mpfr_round_near_x (mpfr_ptr, mpfr_srcptr,
+ mpfr_uexp_t, int,
+ mpfr_rnd_t);
__MPFR_DECLSPEC MPFR_COLD_FUNCTION_ATTR MPFR_NORETURN void
- mpfr_abort_prec_max _MPFR_PROTO ((void));
+ mpfr_abort_prec_max (void);
-__MPFR_DECLSPEC void mpfr_rand_raw _MPFR_PROTO((mpfr_limb_ptr, gmp_randstate_t,
- mpfr_prec_t));
+__MPFR_DECLSPEC void mpfr_rand_raw (mpfr_limb_ptr, gmp_randstate_t,
+ mpfr_prec_t);
-__MPFR_DECLSPEC mpz_srcptr mpfr_bernoulli_cache _MPFR_PROTO ((unsigned long));
-__MPFR_DECLSPEC void mpfr_bernoulli_freecache _MPFR_PROTO ((void));
+__MPFR_DECLSPEC mpz_srcptr mpfr_bernoulli_cache (unsigned long);
+__MPFR_DECLSPEC void mpfr_bernoulli_freecache (void);
-__MPFR_DECLSPEC int mpfr_sincos_fast _MPFR_PROTO((mpfr_t, mpfr_t,
- mpfr_srcptr, mpfr_rnd_t));
+__MPFR_DECLSPEC int mpfr_sincos_fast (mpfr_t, mpfr_t,
+ mpfr_srcptr, mpfr_rnd_t);
-__MPFR_DECLSPEC double mpfr_scale2 _MPFR_PROTO((double, int));
+__MPFR_DECLSPEC double mpfr_scale2 (double, int);
-__MPFR_DECLSPEC void mpfr_div_ui2 _MPFR_PROTO((mpfr_ptr, mpfr_srcptr,
- unsigned long int, unsigned long int,
- mpfr_rnd_t));
+__MPFR_DECLSPEC void mpfr_div_ui2 (mpfr_ptr, mpfr_srcptr,
+ unsigned long int, unsigned long int,
+ mpfr_rnd_t);
-__MPFR_DECLSPEC void mpfr_gamma_one_and_two_third _MPFR_PROTO((mpfr_ptr, mpfr_ptr, mpfr_prec_t));
+__MPFR_DECLSPEC void mpfr_gamma_one_and_two_third (mpfr_ptr, mpfr_ptr, mpfr_prec_t);
-__MPFR_DECLSPEC void mpfr_mpz_init _MPFR_PROTO((mpz_ptr));
-__MPFR_DECLSPEC void mpfr_mpz_clear _MPFR_PROTO((mpz_ptr));
+__MPFR_DECLSPEC void mpfr_mpz_init (mpz_ptr);
+__MPFR_DECLSPEC void mpfr_mpz_clear (mpz_ptr);
#if defined (__cplusplus)
}