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 int exp;
21
22
23
24
25 for (exp = -100000; exp <= 100000; exp += 100000)
26 ASSERT (ISNAN (LDEXP (NAN, exp)));
27
28
29 for (exp = -100000; exp <= 100000; exp += 100000)
30 {
31 DOUBLE z = LDEXP (L_(0.0), exp);
32 ASSERT (z == L_(0.0));
33 ASSERT (!signbit (z));
34 }
35 for (exp = -100000; exp <= 100000; exp += 100000)
36 {
37 DOUBLE z = LDEXP (MINUS_ZERO, exp);
38 ASSERT (z == L_(0.0));
39 ASSERT (!!signbit (z) == !!signbit (MINUS_ZERO));
40 }
41
42
43 for (exp = -100000; exp <= 100000; exp += 100000)
44 ASSERT (LDEXP (INFINITY, exp) == INFINITY);
45 for (exp = -100000; exp <= 100000; exp += 100000)
46 ASSERT (LDEXP (- INFINITY, exp) == - INFINITY);
47 }