Lines Matching refs:pd

33 double_type *pd = doubles;  variable
55 v = strtod(pd->string, &tail); in test_strtod()
56 if (tail - pd->string) { in test_strtod()
57 if (fabs(v) < DBL_MIN && !(pd->endscan & ENDSCAN_IS_ZERO)) { in test_strtod()
60 if (strncasecmp(pd->string, "0x", 2) == 0) in test_strtod()
65 } else if (isinf(v) && !(pd->endscan & ENDSCAN_IS_INF)) in test_strtod()
70 test_mok(v, pd->value, CONVERT_BITS_DOUBLE); in test_strtod()
71 test_iok(tail - pd->string, pd->endscan & ENDSCAN_MASK); in test_strtod()
81 v = strtof(pd->string, &tail); in test_strtof()
82 if (tail - pd->string) { in test_strtof()
84 if (fabsf(v) < FLT_MIN && !(pd->endscan & ENDSCAN_IS_ZERO)) in test_strtof()
86 else if (isinf(v) && !(pd->endscan & ENDSCAN_IS_INF)) in test_strtof()
91 test_mfok((double) v, pd->value, CONVERT_BITS_FLOAT); in test_strtof()
92 test_iok(tail - pd->string, pd->endscan & ENDSCAN_MASK); in test_strtof()
113 v = strtold(pd->string, &tail); in test_strtold()
114 if (tail - pd->string) { in test_strtold()
119 if (av < LDBL_MIN && !(pd->endscan & ENDSCAN_IS_ZERO)) in test_strtold()
121 else if (isinf(av) && !(pd->endscan & ENDSCAN_IS_INF)) in test_strtold()
126 test_mok(v, pd->value, STRTOLD_TEST_BITS); in test_strtold()
127 test_iok(tail - pd->string, pd->endscan & ENDSCAN_MASK); in test_strtold()
134 test_mok(atof(pd->string), pd->value, CONVERT_BITS_DOUBLE); in test_atof()
141 float v = atoff(pd->string); in test_atoff()
142 test_mfok(v, (float) pd->value, CONVERT_BITS_FLOAT); in test_atoff()
152 pd = doubles; in iterate()
153 if (!pd->string) in iterate()
157 while (pd->string) { in iterate()
158 line(pd->line); in iterate()
160 pd++; in iterate()