summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-09-02 09:36:45 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-09-02 09:36:45 +0000
commit7dfd18367790659afdbf6341a6cc92f7cdba77fd (patch)
tree0485ddecb94ef6eaa8e7091e9c74c0f254b8ec75
parent3c1f08c2642b45c16bc0a938a9947df7e712ba2c (diff)
downloadmpc-7dfd18367790659afdbf6341a6cc92f7cdba77fd.tar.gz
renamed mpc_[s|g]et_[c|lc] to mpc_[s|g]et_[dc|ldc]
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@825 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--NEWS6
-rw-r--r--doc/mpc.texi8
-rw-r--r--doc/version.texi4
-rw-r--r--src/mpc.h8
-rw-r--r--src/set_x.c4
-rw-r--r--tests/tset.c12
6 files changed, 21 insertions, 21 deletions
diff --git a/NEWS b/NEWS
index 2dd604c..3532339 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,8 @@
Changes in version 0.8.3:
- New functions:
- - mpc_set_c, mpc_set_lc, mpc_get_c, mpc_get_lc for converting between
- mpc type variables and C variables of type double _Complex or
- long double _Complex
+ - mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc for converting
+ between mpc type variables and C variables of type double _Complex
+ or long double _Complex
- Speed-up of mpc_pow_si through binary exponentiation, and of
mpc_pow_z when the exponent fits in a long
- Bug fixes:
diff --git a/doc/mpc.texi b/doc/mpc.texi
index 62f0e0b..2213767 100644
--- a/doc/mpc.texi
+++ b/doc/mpc.texi
@@ -593,8 +593,8 @@ with the given rounding mode @var{rnd}.
@deftypefunx int mpc_set_sj (mpc_t @var{rop}, intmax_t @var{op}, mpc_rnd_t @var{rnd})
@deftypefunx int mpc_set_d (mpc_t @var{rop}, double @var{op}, mpc_rnd_t @var{rnd})
@deftypefunx int mpc_set_ld (mpc_t @var{rop}, long double @var{op}, mpc_rnd_t @var{rnd})
-@deftypefunx int mpc_set_c (mpc_t @var{rop}, double _Complex @var{op}, mpc_rnd_t @var{rnd})
-@deftypefunx int mpc_set_lc (mpc_t @var{rop}, long double _Complex @var{op}, mpc_rnd_t @var{rnd})
+@deftypefunx int mpc_set_dc (mpc_t @var{rop}, double _Complex @var{op}, mpc_rnd_t @var{rnd})
+@deftypefunx int mpc_set_ldc (mpc_t @var{rop}, long double _Complex @var{op}, mpc_rnd_t @var{rnd})
@deftypefunx int mpc_set_z (mpc_t @var{rop}, mpz_t @var{op} mpc_rnd_t @var{rnd})
@deftypefunx int mpc_set_q (mpc_t @var{rop}, mpq_t @var{op} mpc_rnd_t @var{rnd})
@deftypefunx int mpc_set_f (mpc_t @var{rop}, mpf_t @var{op} mpc_rnd_t @var{rnd})
@@ -654,8 +654,8 @@ third auxiliary variable.
The following functions are available only if @code{<complex.h>}
is included @emph{before} @file{mpc.h}.
-@deftypefun double _Complex mpc_get_c (mpc_t @var{op}, mpc_rnd_t @var{rnd})
-@deftypefunx {long double _Complex} mpc_get_lc (mpc_t @var{op}, mpc_rnd_t @var{rnd})
+@deftypefun double _Complex mpc_get_dc (mpc_t @var{op}, mpc_rnd_t @var{rnd})
+@deftypefunx {long double _Complex} mpc_get_ldc (mpc_t @var{op}, mpc_rnd_t @var{rnd})
Convert @var{op} to a C complex number, using the rounding mode @var{rnd}.
@end deftypefun
diff --git a/doc/version.texi b/doc/version.texi
index 6f48724..cf6b32f 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,4 +1,4 @@
-@set UPDATED 14 May 2010
-@set UPDATED-MONTH May 2010
+@set UPDATED 31 August 2010
+@set UPDATED-MONTH August 2010
@set EDITION 0.8.3-dev
@set VERSION 0.8.3-dev
diff --git a/src/mpc.h b/src/mpc.h
index c6f71b5..e7106f8 100644
--- a/src/mpc.h
+++ b/src/mpc.h
@@ -198,10 +198,10 @@ __MPC_DECLSPEC int mpc_set_uj_uj __MPC_PROTO ((mpc_ptr, uintmax_t, uintmax_t, m
#endif
#ifdef _MPC_H_HAVE_COMPLEX
-__MPC_DECLSPEC int mpc_set_c __MPC_PROTO ((mpc_ptr, double _Complex, mpc_rnd_t));
-__MPC_DECLSPEC int mpc_set_lc __MPC_PROTO ((mpc_ptr, long double _Complex, mpc_rnd_t));
-__MPC_DECLSPEC double _Complex mpc_get_c __MPC_PROTO ((mpc_srcptr, mpc_rnd_t));
-__MPC_DECLSPEC long double _Complex mpc_get_lc __MPC_PROTO ((mpc_srcptr, mpc_rnd_t));
+__MPC_DECLSPEC int mpc_set_dc __MPC_PROTO ((mpc_ptr, double _Complex, mpc_rnd_t));
+__MPC_DECLSPEC int mpc_set_ldc __MPC_PROTO ((mpc_ptr, long double _Complex, mpc_rnd_t));
+__MPC_DECLSPEC double _Complex mpc_get_dc __MPC_PROTO ((mpc_srcptr, mpc_rnd_t));
+__MPC_DECLSPEC long double _Complex mpc_get_ldc __MPC_PROTO ((mpc_srcptr, mpc_rnd_t));
#endif
__MPC_DECLSPEC void mpc_set_nan __MPC_PROTO ((mpc_ptr));
diff --git a/src/set_x.c b/src/set_x.c
index 6b9a228..a2e5139 100644
--- a/src/set_x.c
+++ b/src/set_x.c
@@ -88,12 +88,12 @@ mpc_set_sj (mpc_ptr a, intmax_t b, mpc_rnd_t rnd)
#ifdef _MPC_H_HAVE_COMPLEX
int
-mpc_set_c (mpc_ptr a, double _Complex b, mpc_rnd_t rnd) {
+mpc_set_dc (mpc_ptr a, double _Complex b, mpc_rnd_t rnd) {
return mpc_set_d_d (a, creal (b), cimag (b), rnd);
}
int
-mpc_set_lc (mpc_ptr a, long double _Complex b, mpc_rnd_t rnd) {
+mpc_set_ldc (mpc_ptr a, long double _Complex b, mpc_rnd_t rnd) {
return mpc_set_ld_ld (a, creall (b), cimagl (b), rnd);
}
#endif
diff --git a/tests/tset.c b/tests/tset.c
index b2c8701..70a0295 100644
--- a/tests/tset.c
+++ b/tests/tset.c
@@ -100,7 +100,7 @@ check_set (void)
PRINT_ERROR ("mpc_set_d", prec, z);
#if defined _MPC_H_HAVE_COMPLEX
- mpc_set_c (z, I*1.23456789+1.23456789, MPC_RNDNN);
+ mpc_set_dc (z, I*1.23456789+1.23456789, MPC_RNDNN);
if (mpfr_cmp (MPC_RE(z), fr) != 0 || mpfr_cmp (MPC_IM(z), fr) != 0)
PRINT_ERROR ("mpc_set_c", prec, z);
#endif
@@ -125,7 +125,7 @@ check_set (void)
PRINT_ERROR ("mpc_set_ld_ld", prec, z);
#if defined _MPC_H_HAVE_COMPLEX
- mpc_set_lc (z, I*1.23456789L+1.23456789L, MPC_RNDNN);
+ mpc_set_ldc (z, I*1.23456789L+1.23456789L, MPC_RNDNN);
if (mpfr_cmp (MPC_RE(z), fr) != 0 || mpfr_cmp (MPC_IM(z), fr) != 0)
PRINT_ERROR ("mpc_set_lc", prec, z);
#endif
@@ -294,11 +294,11 @@ check_set (void)
double _Complex c = 1.0 - 2.0*I;
long double _Complex lc = c;
- mpc_set_c (z, c, MPC_RNDNN);
- if (mpc_get_c (z, MPC_RNDNN) != c)
+ mpc_set_dc (z, c, MPC_RNDNN);
+ if (mpc_get_dc (z, MPC_RNDNN) != c)
PRINT_ERROR ("mpc_get_c", prec, z);
- mpc_set_lc (z, lc, MPC_RNDNN);
- if (mpc_get_lc (z, MPC_RNDNN) != lc)
+ mpc_set_ldc (z, lc, MPC_RNDNN);
+ if (mpc_get_ldc (z, MPC_RNDNN) != lc)
PRINT_ERROR ("mpc_get_lc", prec, z);
}
#endif