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 ASSERT (ISNAN (REMAINDER (NAN, L_(2.0))));
24 ASSERT (ISNAN (REMAINDER (NAN, L_(0.0))));
25 ASSERT (ISNAN (REMAINDER (L_(2.0), NAN)));
26 ASSERT (ISNAN (REMAINDER (L_(0.0), NAN)));
27 ASSERT (ISNAN (REMAINDER (NAN, NAN)));
28
29
30 ASSERT (ISNAN (REMAINDER (L_(2.0), L_(0.0))));
31 ASSERT (ISNAN (REMAINDER (L_(2.0), MINUS_ZERO)));
32 ASSERT (ISNAN (REMAINDER (INFINITY, L_(0.0))));
33 ASSERT (ISNAN (REMAINDER (INFINITY, MINUS_ZERO)));
34
35
36 ASSERT (ISNAN (REMAINDER (INFINITY, L_(2.0))));
37 ASSERT (ISNAN (REMAINDER (INFINITY, - L_(2.0))));
38
39
40
41
42
43 {
44 DOUBLE z = REMAINDER (L_(0.0), L_(2.0));
45 ASSERT (z == L_(0.0));
46 ASSERT (!signbit (z));
47 }
48 {
49 DOUBLE z = REMAINDER (MINUS_ZERO, L_(2.0));
50 ASSERT (z == L_(0.0));
51 ASSERT (!!signbit (z) == !!signbit (MINUS_ZERO));
52 }
53 {
54 DOUBLE z = REMAINDER (L_(0.0), - L_(2.0));
55 ASSERT (z == L_(0.0));
56 ASSERT (!signbit (z));
57 }
58 {
59 DOUBLE z = REMAINDER (MINUS_ZERO, - L_(2.0));
60 ASSERT (z == L_(0.0));
61 ASSERT (!!signbit (z) == !!signbit (MINUS_ZERO));
62 }
63 }