diff options
author | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2012-03-06 20:51:08 +0000 |
---|---|---|
committer | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2012-03-06 20:51:08 +0000 |
commit | b7c13d52eee1c7946010f0a6aba28d22bc504008 (patch) | |
tree | e5c533239d3d0253c656ce43e0cc37c9a1011eac /doc | |
parent | b1af57b47281797329f7d3298585a60750e287f9 (diff) | |
download | mpc-b7c13d52eee1c7946010f0a6aba28d22bc504008.tar.gz |
[mul.c] don't call mpc_sqr any more when both inputs are the same variable
[mpc.texi,NEWS] document the above change
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1139 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'doc')
-rw-r--r-- | doc/mpc.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/mpc.texi b/doc/mpc.texi index dfa74ec..acb4576 100644 --- a/doc/mpc.texi +++ b/doc/mpc.texi @@ -863,6 +863,8 @@ For @code{mpc_ui_ui_sub}, @var{op1} is @var{re1} + @var{im1}. @deftypefunx int mpc_mul_si (mpc_t @var{rop}, mpc_t @var{op1}, long int @var{op2}, mpc_rnd_t @var{rnd}) @deftypefunx int mpc_mul_fr (mpc_t @var{rop}, mpc_t @var{op1}, mpfr_t @var{op2}, mpc_rnd_t @var{rnd}) Set @var{rop} to @var{op1} times @var{op2} rounded according to @var{rnd}. +Note: for @code{mpc_mul}, in case @var{op1} and @var{op2} have the same value, +use @code{mpc_sqr} for better efficiency. @end deftypefun @deftypefun int mpc_mul_i (mpc_t @var{rop}, mpc_t @var{op}, int @var{sgn}, mpc_rnd_t @var{rnd}) |