5 #pragma disable_warning 184
10 #if defined(__STDC_VERSION__)
11 # if (__STDC_VERSION__ >= 199901L)
18 LONG_MAX
, /* .byte #0x00,#0x00,#0x00,#0x4F ; +2.147484e+09 */
19 LONG_MIN
, /* .byte #0x00,#0x00,#0x00,#0x4F ; +2.147484e+09 ? */
21 12345678901, /* .byte #0x00,#0x00,#0x80,#0x4F ; +4.294967e+09 */
22 -12345678901, /* .byte #0x00,#0x00,#0x80,#0x3F ; +1.000000e+00 ? */
24 12345678901L, /* .byte #0x00,#0x00,#0x00,#0x4F ; +2.147484e+09 */
25 -12345678901L, /* .byte #0x00,#0x00,#0x00,#0xCF ; -2.147484e+09 */
27 2147483647L, /* .byte #0x00,#0x00,#0x00,#0x4F ; +2.147484e+09 */
29 -2147483648L, /* .byte #0x00,#0x00,#0x00,#0xCF ; -2.147484e+09 */
31 -2147483647L-1, /* .byte #0x00,#0x00,#0x00,#0xCF ; -2.147484e+09 */
33 ULONG_MAX
, /* .byte #0x00,#0x00,#0x80,#0x4F ; +4.294967e+09 */
34 1.0, /* .byte #0x00,#0x00,#0x80,#0x3F ; +1.000000e+00 */
36 0.0, /* .byte #0x00,#0x00,#0x00,#0x00 ; +0.000000e+00 */
37 -0.0 /* .byte #0x00,#0x00,#0x00,#0x80 ; -0.000000e+00 */
42 #if !defined(__SDCC_pic16) && !defined(__SDCC_pdk14) // Lack of memory
47 /* These first two tests assume LONG_MAX and LONG_MIN are 32-bit. This */
48 /* is not true for some 64-bit host compilers. Check SDCC only. */
50 ASSERT(a
[0] > +2.1e9
&& a
[0] < +2.2e9
);
51 ASSERT(a
[1] < -2.1e9
&& a
[1] > -2.2e9
);
53 ASSERT(a
[2] > +2.1e9
);
54 ASSERT(a
[3] < -2.1e9
);
55 ASSERT(a
[4] > +2.1e9
);
56 ASSERT(a
[5] < -2.1e9
);
57 ASSERT(a
[6] > +2.1e9
);
58 ASSERT(a
[7] < -2.1e9
);
59 ASSERT(a
[8] > +4.2e9
);