diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-02-15 13:41:44 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-02-15 13:41:44 +0000 |
commit | 5024980fea4e2cc196cc02a6e3b88e9c3d313fa6 (patch) | |
tree | a6e651b74fa2b5e3ecf7cd813b3ae8ab4df2cb90 /src | |
parent | 3026cba98c77c1153f1936083d90b2baa955f586 (diff) | |
download | mpfr-5024980fea4e2cc196cc02a6e3b88e9c3d313fa6.tar.gz |
renamed mpfr_compound to mpfr_compound_si, since in C2X, compoundn takes
an intmax_t and not a long, thus we can later implement mpfr_compoundn
taking as input an intmax_t
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14429 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/compound.c | 4 | ||||
-rw-r--r-- | src/mpfr.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compound.c b/src/compound.c index c3e2cc09f..c71b7c5b4 100644 --- a/src/compound.c +++ b/src/compound.c @@ -1,4 +1,4 @@ -/* mpfr_compound --- compound(x,n) = (1+x)^n +/* mpfr_compound_si --- compound(x,n) = (1+x)^n Copyright 2021 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. @@ -52,7 +52,7 @@ mpfr_compound_near_one (mpfr_ptr y, int s, mpfr_rnd_t rnd_mode) /* put in y the correctly rounded value of (1+x)^n */ int -mpfr_compound (mpfr_ptr y, mpfr_srcptr x, long n, mpfr_rnd_t rnd_mode) +mpfr_compound_si (mpfr_ptr y, mpfr_srcptr x, long n, mpfr_rnd_t rnd_mode) { int inexact, compared, k, nloop; mpfr_t t; diff --git a/src/mpfr.h b/src/mpfr.h index 27fb9aabc..f4721d59d 100644 --- a/src/mpfr.h +++ b/src/mpfr.h @@ -564,7 +564,7 @@ __MPFR_DECLSPEC int mpfr_snprintf (char*, size_t, const char*, ...); __MPFR_DECLSPEC int mpfr_pow (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t); __MPFR_DECLSPEC int mpfr_powr (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t); __MPFR_DECLSPEC int mpfr_pow_si (mpfr_ptr, mpfr_srcptr, long, mpfr_rnd_t); -__MPFR_DECLSPEC int mpfr_compound (mpfr_ptr, mpfr_srcptr, long, mpfr_rnd_t); +__MPFR_DECLSPEC int mpfr_compound_si (mpfr_ptr, mpfr_srcptr, long, mpfr_rnd_t); __MPFR_DECLSPEC int mpfr_pow_ui (mpfr_ptr, mpfr_srcptr, unsigned long, mpfr_rnd_t); __MPFR_DECLSPEC int mpfr_ui_pow_ui (mpfr_ptr, unsigned long, unsigned long, |