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, ceil, "ceil", "ceil_inp.ref", "ceil_out.ref", 30 ""}, 31 {FUNC_NORMAL, 50, fabs, "fabs", "fabs_inp.ref", "fabs_out.ref", 32 ""}, 33 {FUNC_NORMAL, 50, floor, "floor", "floor_inp.ref", "floor_out.ref", 34 ""}, 35 {FUNC_FMOD, 50, fmod, "fmod", "fmod_inp.ref", "fmod_out.ref", 36 "1fmod_inp.ref"}, 37 {FUNC_POW, 47, pow, "pow", "pow_inp.ref", "pow_out.ref", 38 "1pow_inp.ref"}, 39 {FUNC_NORMAL, 50, sqrt, "sqrt", "sqrt_inp.ref", "sqrt_out.ref", 40 ""} 41 }; 42 43 #define NB_FUNC (sizeof(th_func)/sizeof(TH_FUNC)) 44 45 #define GENERATOR "genpower" 46 #include "main.c" 47 #include "thread_code.c" 48