This source file includes following definitions.
- test_function
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 static void
18 test_function (void)
19 {
20
21
22
23 {
24 int exp = -9999;
25 DOUBLE mantissa;
26 mantissa = FREXP (NAN, &exp);
27 ASSERT (ISNAN (mantissa));
28 }
29
30
31 {
32 int exp = -9999;
33 DOUBLE mantissa;
34 mantissa = FREXP (L_(0.0), &exp);
35 ASSERT (mantissa == L_(0.0));
36 ASSERT (!signbit (mantissa));
37 ASSERT (exp == 0);
38 }
39 {
40 int exp = -9999;
41 DOUBLE mantissa;
42 mantissa = FREXP (MINUS_ZERO, &exp);
43 ASSERT (mantissa == L_(0.0));
44 ASSERT (!!signbit (mantissa) == !!signbit (MINUS_ZERO));
45 ASSERT (exp == 0);
46 }
47
48
49 {
50 int exp = -9999;
51 DOUBLE mantissa;
52 mantissa = FREXP (INFINITY, &exp);
53 ASSERT (mantissa == INFINITY);
54 }
55 {
56 int exp = -9999;
57 DOUBLE mantissa;
58 mantissa = FREXP (- INFINITY, &exp);
59 ASSERT (mantissa == - INFINITY);
60 }
61 }