• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) Bull S.A. 2001
3  * Copyright (c) International Business Machines  Corp., 2001
4  *
5  *   This program is free software;  you can redistribute it and/or modify
6  *   it under the terms of the GNU General Public License as published by
7  *   the Free Software Foundation; either version 2 of the License, or
8  *   (at your option) any later version.
9  *
10  *   This program is distributed in the hope that it will be useful,
11  *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
13  *   the GNU General Public License for more details.
14  *
15  *   You should have received a copy of the GNU General Public License
16  *   along with this program;  if not, write to the Free Software
17  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 /******************************************************************************/
21 /*                                                                            */
22 /* Dec-03-2001  Created: Jacky Malcles & Jean Noel Cordenner                  */
23 /*              These tests are adapted from AIX float PVT tests.             */
24 /*                                                                            */
25 /******************************************************************************/
26 #include "tfloat.h"
27 
28 const TH_FUNC th_func[] = {
29 	{FUNC_NORMAL, 50, exp, "exp", "exp_inp.ref", "exp_out.ref",
30 	 ""},
31 	{FUNC_NORMAL, 50, log, "log", "log_inp.ref", "log_out.ref2",
32 	 ""},
33 	{FUNC_NORMAL, 50, log10, "log10", "log10_inp.ref", "log10_out.ref",
34 	 ""},
35 	{FUNC_FREXP, 50, frexp, "frexp", "frexp_inp.ref", "frexp_out.ref",
36 	 "frexp1_out.ref"},
37 	{FUNC_HYPOT, 50, hypot, "hypot", "hypot_inp.ref", "hypot_out.ref",
38 	 ""},
39 	{FUNC_LDEXP, 50, ldexp, "ldexp", "ldexp_inp.ref", "ldexp_out.ref",
40 	 "ildexp_inp.ref"},
41 	{FUNC_MODF, 50, modf, "modf", "modf_inp.ref", "modf_out.ref",
42 	 "modf1_out.ref"}
43 };
44 
45 #define NB_FUNC  (sizeof(th_func)/sizeof(TH_FUNC))
46 
47 #define GENERATOR "genexp_log"
48 #include "main.c"
49 #include "thread_code.c"
50