diff options
Diffstat (limited to 'tests/read_description.c')
-rw-r--r-- | tests/read_description.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/read_description.c b/tests/read_description.c index 8a02265..f706b69 100644 --- a/tests/read_description.c +++ b/tests/read_description.c @@ -56,7 +56,8 @@ static const param_typeval_t sparam_typeval[]= { { "mpc_inex" , MPC_INEX }, { "mpc_ptr" , MPC }, { "mpc_srcptr" , MPC }, - { "mpc_rnd_t" , MPC_RND } + { "mpc_rnd_t" , MPC_RND }, + { "mpcc_inex" , MPCC_INEX } }; /* read primitives */ @@ -166,6 +167,7 @@ read_description (mpc_fun_param_t* param, const char *filename) size_t len = 0; int nbout = 0; int nbin = 0; + int rnd_mode = 0; int j; open_datafile (&datafile_context, filename); @@ -251,12 +253,15 @@ read_description (mpc_fun_param_t* param, const char *filename) if (strlen (buffer) == 0 && feof (datafile_context.fd)) break; param->T[nbout+nbin] = description_findtype (buffer); + if (param->T[nbout+nbin] == MPC_RND || param->T[nbout+nbin] == MPFR_RND) + rnd_mode++; nbin++; } free (buffer); param->nbout = nbout; - param->nbin = nbin; + param->nbin = nbin; + param->nbrnd = rnd_mode; /* duplicate output parameters at the end for the expected values */ for (j = 0; j < param->nbout; j++) |