#include <apitest.h>
#include <float.h>
#include <math.h>
Go to the source code of this file.
◆ START_TEST()
◆ test_finite()
Definition at line 20 of file ieee.c.
21{
23
24 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
26 tested.
l = 0xFFF8000000000001LL;
28 tested.
l = 0xFFF8000000000000LL;
30 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
32 tested.
l = 0xFFF0000000000001LL;
34 tested.
l = 0xFFF0000000000000LL;
36 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
38 tested.
l = 0x8010000000000000LL;
40 tested.
l = 0x800FFFFFFFFFFFFFLL;
42 tested.
l = 0x8000000000000001LL;
44 tested.
l = 0x8000000000000000LL;
46 tested.
l = 0x0000000000000000LL;
48 tested.
l = 0x0000000000000001LL;
50 tested.
l = 0x000FFFFFFFFFFFFFLL;
52 tested.
l = 0x0010000000000000LL;
54 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
56 tested.
l = 0x7FF0000000000000LL;
58 tested.
l = 0x7FF0000000000001LL;
60 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
62 tested.
l = 0x7FF8000000000000LL;
64 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
66
67
69}
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _finite(_In_ double)
Referenced by START_TEST().
◆ test_fpclass()
Definition at line 71 of file ieee.c.
72{
73 int class;
75
76 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
79 tested.
l = 0xFFF8000000000001LL;
82 tested.
l = 0xFFF8000000000000LL;
84
85
86
88 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
90
91
92
93
95 tested.
l = 0xFFF0000000000001LL;
97
98
99
100
102 tested.
l = 0xFFF0000000000000LL;
105 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
108 tested.
l = 0x8010000000000000LL;
111 tested.
l = 0x800FFFFFFFFFFFFFLL;
114 tested.
l = 0x8000000000000001LL;
117 tested.
l = 0x8000000000000000LL;
120 tested.
l = 0x0000000000000000LL;
123 tested.
l = 0x0000000000000001LL;
126 tested.
l = 0x000FFFFFFFFFFFFFLL;
129 tested.
l = 0x0010000000000000LL;
132 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
135 tested.
l = 0x7FF0000000000000LL;
138 tested.
l = 0x7FF0000000000001LL;
140
141
142
143
145 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
147
148
149
150
152 tested.
l = 0x7FF8000000000000LL;
155 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
158
159
162}
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _fpclass(_In_ double)
Referenced by START_TEST().
◆ test_isnan()
Definition at line 164 of file ieee.c.
165{
167
168 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
170 tested.
l = 0xFFF8000000000001LL;
172 tested.
l = 0xFFF8000000000000LL;
174 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
176 tested.
l = 0xFFF0000000000001LL;
178 tested.
l = 0xFFF0000000000000LL;
180 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
182 tested.
l = 0x8010000000000000LL;
184 tested.
l = 0x800FFFFFFFFFFFFFLL;
186 tested.
l = 0x8000000000000001LL;
188 tested.
l = 0x8000000000000000LL;
190 tested.
l = 0x0000000000000000LL;
192 tested.
l = 0x0000000000000001LL;
194 tested.
l = 0x000FFFFFFFFFFFFFLL;
196 tested.
l = 0x0010000000000000LL;
198 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
200 tested.
l = 0x7FF0000000000000LL;
202 tested.
l = 0x7FF0000000000001LL;
204 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
206 tested.
l = 0x7FF8000000000000LL;
208 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
210
211
213}
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _isnan(_In_ double)
Referenced by START_TEST().
◆ test_j0()
Definition at line 215 of file ieee.c.
216{
220
222
224 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
230 tested.
l = 0xFFF8000000000001LL;
236 tested.
l = 0xFFF8000000000000LL;
242 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
248 tested.
l = 0xFFF0000000000001LL;
254 tested.
l = 0xFFF0000000000000LL;
260 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
266 tested.
l = 0x8010000000000000LL;
272 tested.
l = 0x800FFFFFFFFFFFFFLL;
278 tested.
l = 0x8000000000000001LL;
284 tested.
l = 0x8000000000000000LL;
290 tested.
l = 0x0000000000000000LL;
296 tested.
l = 0x0000000000000001LL;
302 tested.
l = 0x000FFFFFFFFFFFFFLL;
308 tested.
l = 0x0010000000000000LL;
314 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
320 tested.
l = 0x7FF0000000000000LL;
326 tested.
l = 0x7FF0000000000001LL;
332 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
338 tested.
l = 0x7FF8000000000000LL;
344 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
349
350
357}
_Check_return_ _CRTIMP double __cdecl _j0(_In_ double x)
Referenced by START_TEST().
◆ test_j1()
Definition at line 359 of file ieee.c.
360{
364
366
368 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
374 tested.
l = 0xFFF8000000000001LL;
380 tested.
l = 0xFFF8000000000000LL;
386 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
392 tested.
l = 0xFFF0000000000001LL;
398 tested.
l = 0xFFF0000000000000LL;
404 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
410 tested.
l = 0x8010000000000000LL;
416 tested.
l = 0x800FFFFFFFFFFFFFLL;
422 tested.
l = 0x8000000000000001LL;
428 tested.
l = 0x8000000000000000LL;
434 tested.
l = 0x0000000000000000LL;
440 tested.
l = 0x0000000000000001LL;
446 tested.
l = 0x000FFFFFFFFFFFFFLL;
452 tested.
l = 0x0010000000000000LL;
458 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
464 tested.
l = 0x7FF0000000000000LL;
470 tested.
l = 0x7FF0000000000001LL;
476 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
482 tested.
l = 0x7FF8000000000000LL;
488 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
493
494
501}
_Check_return_ _CRTIMP double __cdecl _j1(_In_ double x)
Referenced by START_TEST().
◆ test_scalb()
Definition at line 503 of file ieee.c.
504{
508
510
512 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
518 tested.
l = 0xFFF8000000000001LL;
524 tested.
l = 0xFFF8000000000000LL;
530 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
536 tested.
l = 0xFFF0000000000001LL;
542 tested.
l = 0xFFF0000000000000LL;
548 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
554 tested.
l = 0x8010000000000000LL;
560 tested.
l = 0x800FFFFFFFFFFFFFLL;
566 tested.
l = 0x8000000000000001LL;
572 tested.
l = 0x8000000000000000LL;
578 tested.
l = 0x0000000000000000LL;
584 tested.
l = 0x0000000000000001LL;
590 tested.
l = 0x000FFFFFFFFFFFFFLL;
596 tested.
l = 0x0010000000000000LL;
602 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
608 tested.
l = 0x7FF0000000000000LL;
614 tested.
l = 0x7FF0000000000001LL;
620 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
626 tested.
l = 0x7FF8000000000000LL;
632 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
637
638
645}
_Check_return_ __MINGW_NOTHROW _CRTIMP double __cdecl _scalb(_In_ double, _In_ long)
Referenced by START_TEST().
◆ test_y0()
Definition at line 647 of file ieee.c.
648{
652
654
656 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
662 tested.
l = 0xFFF8000000000001LL;
668 tested.
l = 0xFFF8000000000000LL;
674 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
680 tested.
l = 0xFFF0000000000001LL;
686 tested.
l = 0xFFF0000000000000LL;
692 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
698 tested.
l = 0x8010000000000000LL;
704 tested.
l = 0x800FFFFFFFFFFFFFLL;
710 tested.
l = 0x8000000000000001LL;
716 tested.
l = 0x8000000000000000LL;
722 tested.
l = 0x0000000000000000LL;
728 tested.
l = 0x0000000000000001LL;
734 tested.
l = 0x000FFFFFFFFFFFFFLL;
740 tested.
l = 0x0010000000000000LL;
746 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
752 tested.
l = 0x7FF0000000000000LL;
758 tested.
l = 0x7FF0000000000001LL;
764 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
770 tested.
l = 0x7FF8000000000000LL;
776 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
781
782
789}
_Check_return_ _CRTIMP double __cdecl _y0(_In_ double x)
Referenced by START_TEST().
◆ test_y1()
Definition at line 791 of file ieee.c.
792{
796
798
800 tested.
l = 0xFFFFFFFFFFFFFFFFLL;
806 tested.
l = 0xFFF8000000000001LL;
812 tested.
l = 0xFFF8000000000000LL;
818 tested.
l = 0xFFF7FFFFFFFFFFFFLL;
824 tested.
l = 0xFFF0000000000001LL;
830 tested.
l = 0xFFF0000000000000LL;
836 tested.
l = 0xFFEFFFFFFFFFFFFFLL;
842 tested.
l = 0x8010000000000000LL;
848 tested.
l = 0x800FFFFFFFFFFFFFLL;
854 tested.
l = 0x8000000000000001LL;
860 tested.
l = 0x8000000000000000LL;
866 tested.
l = 0x0000000000000000LL;
872 tested.
l = 0x0000000000000001LL;
878 tested.
l = 0x000FFFFFFFFFFFFFLL;
884 tested.
l = 0x0010000000000000LL;
890 tested.
l = 0x7FEFFFFFFFFFFFFFLL;
896 tested.
l = 0x7FF0000000000000LL;
902 tested.
l = 0x7FF0000000000001LL;
908 tested.
l = 0x7FF7FFFFFFFFFFFFLL;
914 tested.
l = 0x7FF8000000000000LL;
920 tested.
l = 0x7FFFFFFFFFFFFFFFLL;
925
926
933}
_Check_return_ _CRTIMP double __cdecl _y1(_In_ double x)
Referenced by START_TEST().