Lines Matching refs:pd

86 	_big_float	*pd;  in __big_binary_to_big_decimal()  local
90 pd = *ppd; in __big_binary_to_big_decimal()
95 pd->bsignificand[1] = __quorem10000(carry, in __big_binary_to_big_decimal()
96 &pd->bsignificand[0]); in __big_binary_to_big_decimal()
97 len = (pd->bsignificand[1])? 2 : 1; in __big_binary_to_big_decimal()
103 carry += (unsigned int)pd->bsignificand[j] in __big_binary_to_big_decimal()
106 &pd->bsignificand[j]); in __big_binary_to_big_decimal()
110 &pd->bsignificand[j]); in __big_binary_to_big_decimal()
126 carry += (unsigned int)pd->bsignificand[j] << s; in __big_binary_to_big_decimal()
127 carry = __quorem10000(carry, &pd->bsignificand[j]); in __big_binary_to_big_decimal()
130 carry = __quorem10000(carry, &pd->bsignificand[j]); in __big_binary_to_big_decimal()
140 pd->blength = len; in __big_binary_to_big_decimal()
141 pd->bexponent = 0; in __big_binary_to_big_decimal()
150 __big_float_times_power(pd, 2, pb->bexponent, nsig, ppd); in __big_binary_to_big_decimal()
176 decimal_record *pd, fp_exception_field_type *ps) in __big_decimal_to_string() argument
231 pd->ds[is++] = '0'; in __big_decimal_to_string()
238 pd->ds[is++] = s[j++]; in __big_decimal_to_string()
247 __four_digits_quick(pf->bsignificand[i], pd->ds + is); in __big_decimal_to_string()
257 pd->ds[is++] = s[j]; in __big_decimal_to_string()
266 pd->ds[is++] = '0'; in __big_decimal_to_string()
270 round = pd->ds[--is]; in __big_decimal_to_string()
276 pd->ds[is++] = '0'; in __big_decimal_to_string()
278 pd->exponent = elast; in __big_decimal_to_string()
279 pd->ndigits = is; in __big_decimal_to_string()
280 pd->ds[is] = '\0'; in __big_decimal_to_string()
291 (is <= 0 || (pd->ds[is - 1] & 1) == 0))) in __big_decimal_to_string()
296 if (pd->sign) in __big_decimal_to_string()
301 if (!pd->sign) in __big_decimal_to_string()
310 for (i = efirst - er; i >= 0 && pd->ds[i] == '9'; i--) in __big_decimal_to_string()
311 pd->ds[i] = '0'; in __big_decimal_to_string()
313 (pd->ds[i])++; in __big_decimal_to_string()
316 pd->ds[0] = '1'; in __big_decimal_to_string()
318 pd->exponent++; in __big_decimal_to_string()
320 pd->exponent++; in __big_decimal_to_string()
324 pd->ds[is] = '0'; in __big_decimal_to_string()
326 pd->ndigits = is; in __big_decimal_to_string()
327 pd->ds[is] = '\0'; in __big_decimal_to_string()
338 __bigfloat_to_decimal(_big_float *bf, decimal_mode *pm, decimal_record *pd, in __bigfloat_to_decimal() argument
419 __big_decimal_to_string(pbd, sticky, pm, pd, ps); in __bigfloat_to_decimal()
529 single_to_decimal(single *px, decimal_mode *pm, decimal_record *pd, in single_to_decimal() argument
538 pd->sign = kluge->f.msw.sign; in single_to_decimal()
543 pd->fpclass = fp_zero; in single_to_decimal()
550 pd->fpclass = fp_subnormal; in single_to_decimal()
564 if (__fast_double_to_decimal(&x, pm, pd, &ef)) { in single_to_decimal()
566 __bigfloat_to_decimal(&bf, pm, pd, &ef); in single_to_decimal()
573 pd->fpclass = fp_subnormal; in single_to_decimal()
578 pd->fpclass = fp_infinity; in single_to_decimal()
580 pd->fpclass = fp_quiet; in single_to_decimal()
582 pd->fpclass = fp_signaling; in single_to_decimal()
586 pd->fpclass = fp_normal; in single_to_decimal()
591 if (__fast_double_to_decimal(&x, pm, pd, &ef)) { in single_to_decimal()
593 __bigfloat_to_decimal(&bf, pm, pd, &ef); in single_to_decimal()
601 double_to_decimal(double *px, decimal_mode *pm, decimal_record *pd, in double_to_decimal() argument
609 pd->sign = kluge->f.msw.sign; in double_to_decimal()
615 pd->fpclass = fp_zero; in double_to_decimal()
619 pd->fpclass = fp_subnormal; in double_to_decimal()
624 pd->fpclass = fp_infinity; in double_to_decimal()
626 pd->fpclass = fp_quiet; in double_to_decimal()
628 pd->fpclass = fp_signaling; in double_to_decimal()
632 pd->fpclass = fp_normal; in double_to_decimal()
636 if (__fast_double_to_decimal(px, pm, pd, &ef)) { in double_to_decimal()
638 __bigfloat_to_decimal(&bf, pm, pd, &ef); in double_to_decimal()
646 extended_to_decimal(extended *px, decimal_mode *pm, decimal_record *pd, in extended_to_decimal() argument
654 pd->sign = kluge->f.msw.sign; in extended_to_decimal()
659 pd->fpclass = fp_zero; in extended_to_decimal()
667 pd->fpclass = fp_subnormal; in extended_to_decimal()
676 pd->fpclass = fp_signaling; in extended_to_decimal()
682 pd->fpclass = fp_infinity; in extended_to_decimal()
684 pd->fpclass = fp_quiet; in extended_to_decimal()
686 pd->fpclass = fp_signaling; in extended_to_decimal()
690 pd->fpclass = fp_normal; in extended_to_decimal()
695 __bigfloat_to_decimal(&bf, pm, pd, &ef); in extended_to_decimal()
702 quadruple_to_decimal(quadruple *px, decimal_mode *pm, decimal_record *pd, in quadruple_to_decimal() argument
710 pd->sign = kluge->f.msw.sign; in quadruple_to_decimal()
717 pd->fpclass = fp_zero; in quadruple_to_decimal()
721 pd->fpclass = fp_subnormal; in quadruple_to_decimal()
727 pd->fpclass = fp_infinity; in quadruple_to_decimal()
729 pd->fpclass = fp_quiet; in quadruple_to_decimal()
731 pd->fpclass = fp_signaling; in quadruple_to_decimal()
735 pd->fpclass = fp_normal; in quadruple_to_decimal()
740 __bigfloat_to_decimal(&bf, pm, pd, &ef); in quadruple_to_decimal()