diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-01-25 13:58:16 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-01-25 13:58:16 +0000 |
commit | e85c51d5ab0f570e026f336ca7ea96095607346f (patch) | |
tree | cee3851f20f94826025d70605e0b67133a6d67a3 /doc | |
parent | f45db7a136ae0f94f0641e56dbd0ea90026ab3fc (diff) | |
download | mpc-e85c51d5ab0f570e026f336ca7ea96095607346f.tar.gz |
added logging for functions of type cc_c
added documentation for logging
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@888 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'doc')
-rw-r--r-- | doc/mpc.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/mpc.texi b/doc/mpc.texi index d083107..80f69dd 100644 --- a/doc/mpc.texi +++ b/doc/mpc.texi @@ -205,6 +205,22 @@ Another useful parameter is @samp{--prefix}, which can be used to specify an alternative installation location instead of @file{/usr/local}; see @samp{make install} below. +If for debugging purposes you wish to log calls to MPC functions from +within your code, add the parameter @samp{--enable-logging}. +In your code, replace the inclusion of @file{mpc.h} by @file{mpc-log.h} +and link the executable dynamically. +Then all calls to functions with only complex arguments are printed to +@file{stderr} in the following form: First, the function name is given, +followed by its type such as @samp{c_cc}, meaning that the function has +one complex result (one @samp{c} in front of the @samp{_}), computed from +two complex arguments (two @samp{c} after the @samp{_}). Then, the +precisions of the real and the imaginary part of the first result is given, +followed by the second one and so on. Finally, for each argument, the +precisions of its real and imaginary part are specified and the argument +itself is printed in hexadecimal via the function +@code{mpc_out_str} +(@pxref{string-io,,String and Stream Input and Output}). + Use @samp{./configure --help} for an exhaustive list of parameters. @item |