diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2014-01-22 10:09:07 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2014-01-22 10:09:07 +0000 |
commit | f8e19d05072cb3e7bc32fc093868fdf73fa9a232 (patch) | |
tree | 28044abea340c7a5fefa24e36d2318131081c2bd /tests/mpc-tests.h | |
parent | 9936d02411e3446fb64e5fd8fb8e5671af25dbf1 (diff) | |
download | mpc-f8e19d05072cb3e7bc32fc093868fdf73fa9a232.tar.gz |
[tests] Support of sin_cos with the new test framework.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1422 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/mpc-tests.h')
-rw-r--r-- | tests/mpc-tests.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/mpc-tests.h b/tests/mpc-tests.h index 19027a5..8a33da8 100644 --- a/tests/mpc-tests.h +++ b/tests/mpc-tests.h @@ -1,6 +1,6 @@ /* mpc-tests.h -- Tests helper functions. -Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 INRIA +Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014 INRIA This file is part of GNU MPC. @@ -179,7 +179,8 @@ typedef enum { MPFR_RND, /* mpfr_rnd_t */ MPC_INEX, /* mpc_inex */ MPC, /* mpc_t */ - MPC_RND /* mpc_rnd_t */ + MPC_RND, /* mpc_rnd_t */ + MPCC_INEX /* mpcc_inex */ } mpc_param_t; /* additional information for checking mpfr_t result */ @@ -255,15 +256,25 @@ typedef union { mpc_rnd_t mpc_rnd; int mpc_inex; mpc_inex_data_t mpc_inex_data; + int mpcc_inex; } mpc_operand_t; #define PARAMETER_ARRAY_SIZE 10 -/* function name plus parameters */ +/* function name plus parameters in the following order: + output parameters, input parameters (ending with rounding modes). + The input parameters include one rounding mode per mpfr/mpc + output starting from rnd_index. + For the time being, there may be either one or two rounding modes; + in the latter case, we assume that there are three outputs: + the inexact value and two complex numbers. + */ typedef struct { char *name; /* name of the function */ int nbout; /* number of output parameters */ - int nbin; /* number of input parameters */ + int nbin; /* number of input parameters, including rounding + modes */ + int nbrnd; /* number of rounding mode parameters */ mpc_operand_t P[PARAMETER_ARRAY_SIZE]; /* value of parameters */ mpc_param_t T[PARAMETER_ARRAY_SIZE]; /* type of parameters */ } mpc_fun_param_t; |