Home | History | Annotate | Line # | Download | only in tests
      1      1.1  mrg /* tsub -- test file for mpc_sub.
      2      1.1  mrg 
      3  1.1.1.2  mrg Copyright (C) 2008, 2011, 2013 INRIA
      4      1.1  mrg 
      5      1.1  mrg This file is part of GNU MPC.
      6      1.1  mrg 
      7      1.1  mrg GNU MPC is free software; you can redistribute it and/or modify it under
      8      1.1  mrg the terms of the GNU Lesser General Public License as published by the
      9      1.1  mrg Free Software Foundation; either version 3 of the License, or (at your
     10      1.1  mrg option) any later version.
     11      1.1  mrg 
     12      1.1  mrg GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
     13      1.1  mrg WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     14      1.1  mrg FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
     15      1.1  mrg more details.
     16      1.1  mrg 
     17      1.1  mrg You should have received a copy of the GNU Lesser General Public License
     18      1.1  mrg along with this program. If not, see http://www.gnu.org/licenses/ .
     19      1.1  mrg */
     20      1.1  mrg 
     21      1.1  mrg #include "mpc-tests.h"
     22      1.1  mrg 
     23  1.1.1.2  mrg #define MPC_FUNCTION_CALL                                               \
     24  1.1.1.2  mrg   P[0].mpc_inex = mpc_sub (P[1].mpc, P[2].mpc, P[3].mpc, P[4].mpc_rnd)
     25  1.1.1.2  mrg #define MPC_FUNCTION_CALL_REUSE_OP1                                     \
     26  1.1.1.2  mrg   P[0].mpc_inex = mpc_sub (P[1].mpc, P[1].mpc, P[3].mpc, P[4].mpc_rnd)
     27  1.1.1.2  mrg #define MPC_FUNCTION_CALL_REUSE_OP2                                     \
     28  1.1.1.2  mrg   P[0].mpc_inex = mpc_sub (P[1].mpc, P[2].mpc, P[1].mpc, P[4].mpc_rnd)
     29  1.1.1.2  mrg 
     30  1.1.1.2  mrg #include "data_check.tpl"
     31  1.1.1.2  mrg #include "tgeneric.tpl"
     32  1.1.1.2  mrg 
     33      1.1  mrg int
     34      1.1  mrg main (void)
     35      1.1  mrg {
     36      1.1  mrg   test_start ();
     37      1.1  mrg 
     38  1.1.1.2  mrg   data_check_template ("sub.dsc", "sub.dat");
     39  1.1.1.2  mrg 
     40  1.1.1.2  mrg   tgeneric_template ("sub.dsc", 2, 1024, 7, 128);
     41      1.1  mrg 
     42      1.1  mrg   test_end ();
     43      1.1  mrg 
     44      1.1  mrg   return 0;
     45      1.1  mrg }
     46