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 DOUBLE integer_part = -9999;
25 DOUBLE fractional_part = MODF (NAN, &integer_part);
26 ASSERT (ISNAN (integer_part));
27 ASSERT (ISNAN (fractional_part));
28 }
29
30
31 {
32 DOUBLE integer_part = -9999;
33 DOUBLE fractional_part = MODF (INFINITY, &integer_part);
34 ASSERT (integer_part == INFINITY);
35 ASSERT (fractional_part == L_(0.0));
36 ASSERT (!signbit (fractional_part));
37 }
38 {
39 DOUBLE integer_part = -9999;
40 DOUBLE fractional_part = MODF (- INFINITY, &integer_part);
41 ASSERT (integer_part == - INFINITY);
42 ASSERT (fractional_part == L_(0.0));
43 ASSERT (!!signbit (fractional_part) == !!signbit (MINUS_ZERO));
44 }
45 }