1 2 /* 3 =============================================================================== 4 5 This C header file is part of TestFloat, Release 2a, a package of programs 6 for testing the correctness of floating-point arithmetic complying to the 7 IEC/IEEE Standard for Floating-Point. 8 9 Written by John R. Hauser. More information is available through the Web 10 page `http://HTTP.CS.Berkeley.EDU/~jhauser/arithmetic/TestFloat.html'. 11 12 THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort 13 has been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT 14 TIMES RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO 15 PERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY 16 AND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE. 17 18 Derivative works are acceptable, even for commercial purposes, so long as 19 (1) they include prominent notice that the work is derivative, and (2) they 20 include prominent notice akin to these four paragraphs for those parts of 21 this code that are retained. 22 23 =============================================================================== 24 */ 25 26 void testCases_setLevel( int8 ); 27 28 void testCases_initSequence( int8 ); 29 enum { 30 testCases_sequence_a_int32, 31 #ifdef BITS64 32 testCases_sequence_a_int64, 33 #endif 34 testCases_sequence_a_float32, 35 testCases_sequence_ab_float32, 36 testCases_sequence_a_float64, 37 testCases_sequence_ab_float64, 38 #ifdef FLOATX80 39 testCases_sequence_a_floatx80, 40 testCases_sequence_ab_floatx80, 41 #endif 42 #ifdef FLOAT128 43 testCases_sequence_a_float128, 44 testCases_sequence_ab_float128, 45 #endif 46 }; 47 48 extern uint32 testCases_total; 49 extern flag testCases_done; 50 51 void testCases_next( void ); 52 53 extern int32 testCases_a_int32; 54 #ifdef BITS64 55 extern int64 testCases_a_int64; 56 #endif 57 extern float32 testCases_a_float32; 58 extern float32 testCases_b_float32; 59 extern float64 testCases_a_float64; 60 extern float64 testCases_b_float64; 61 #ifdef FLOATX80 62 extern floatx80 testCases_a_floatx80; 63 extern floatx80 testCases_b_floatx80; 64 #endif 65 #ifdef FLOAT128 66 extern float128 testCases_a_float128; 67 extern float128 testCases_b_float128; 68 #endif 69 70