2
$Id: dtostrf-nans.c,v 1.1 2007/02/06 12:36:58 dmix Exp $
9
PROGMEM static const struct dtostrf_s t[] = {
11
{ { 0x7f800000 }, 0, 0, "INF" },
12
{ { 0x7f800000 }, 10, 0, " INF" },
13
{ { 0x7f800000 }, -10, 0, "INF " },
15
{ { 0x7f800000 }, 0, 1, "INF" },
16
{ { 0x7f800000 }, 0, 255, "INF" },
17
{ { 0x7f800000 }, 4, 2, " INF" },
19
{ { 0xff800000 }, 0, 0, "-INF" },
20
{ { 0xff800000 }, 10, 0, " -INF" },
21
{ { 0xff800000 }, -10, 0, "-INF " },
23
{ { 0x7f800001 }, 0, 0, "NAN" },
24
{ { 0x7f800001 }, 10, 0, " NAN" },
25
{ { 0x7f800001 }, -10, 0, "NAN " },
27
{ { 0xff800001 }, 0, 0, "NAN" }, /* no '-NaN' */
28
{ { 0xff800001 }, 10, 0, " NAN" },
29
{ { 0xff800001 }, -10, 0, "NAN " },
31
{ { 0x7fffffff }, 0, 0, "NAN" },
32
{ { 0xffffffff }, 0, 0, "NAN" },
33
{ { 0x7fc00000 }, 0, 0, "NAN" },
34
{ { 0xffc00000 }, 0, 0, "NAN" },
36
{ { 0x7fc00000 }, 0, 1, "NAN" },
37
{ { 0x7fc00000 }, 0, 255, "NAN" },
38
{ { 0x7fc00000 }, 4, 2, " NAN" },
44
for (i= 0; (size_t)i != sizeof(t)/sizeof(t[0]); i++)
45
run_dtostrf (t+i, i+1);