testCases.h revision 256281
1271294Sngie
2271294Sngie/*
3271294Sngie===============================================================================
4271294Sngie
5271294SngieThis C header file is part of TestFloat, Release 2a, a package of programs
6271294Sngiefor testing the correctness of floating-point arithmetic complying to the
7271294SngieIEC/IEEE Standard for Floating-Point.
8271294Sngie
9271294SngieWritten by John R. Hauser.  More information is available through the Web
10271294Sngiepage `http://HTTP.CS.Berkeley.EDU/~jhauser/arithmetic/TestFloat.html'.
11271294Sngie
12271294SngieTHIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE.  Although reasonable effort
13271294Sngiehas been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT
14271294SngieTIMES RESULT IN INCORRECT BEHAVIOR.  USE OF THIS SOFTWARE IS RESTRICTED TO
15271294SngiePERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY
16271294SngieAND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE.
17271294Sngie
18271294SngieDerivative works are acceptable, even for commercial purposes, so long as
19271294Sngie(1) they include prominent notice that the work is derivative, and (2) they
20271294Sngieinclude prominent notice akin to these four paragraphs for those parts of
21271294Sngiethis code that are retained.
22271294Sngie
23===============================================================================
24*/
25
26void testCases_setLevel( int8 );
27
28void testCases_initSequence( int8 );
29enum {
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
48extern uint32 testCases_total;
49extern flag testCases_done;
50
51void testCases_next( void );
52
53extern int32 testCases_a_int32;
54#ifdef BITS64
55extern int64 testCases_a_int64;
56#endif
57extern float32 testCases_a_float32;
58extern float32 testCases_b_float32;
59extern float64 testCases_a_float64;
60extern float64 testCases_b_float64;
61#ifdef FLOATX80
62extern floatx80 testCases_a_floatx80;
63extern floatx80 testCases_b_floatx80;
64#endif
65#ifdef FLOAT128
66extern float128 testCases_a_float128;
67extern float128 testCases_b_float128;
68#endif
69
70