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