Searched refs:ndigs (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A D_base_sup.c56 _integerstring_to_big_decimal(char ds[], unsigned ndigs, unsigned nzin, argument
60 * Convert ndigs decimal digits from ds, and up to 3 trailing zeros,
64 * (ndigs+*pnzout) % 4 = 0.
70 printf(" _integerstring_to_big_decimal: ndigs %d nzin %d ds %s \n", ndigs, nzin, ds);
75 extras = ndigs % 4;
85 #define IDIGIT(i) ((i < 0) ? 0 : ((i < ndigs) ? (ds[i] - '0') : 0))
88 pd->blength = (ndigs + taken + 3) / 4;
90 ids = (ndigs + taken) - 4 * pd->blength;
100 for (; ids < (int) (ndigs
119 _fractionstring_to_big_decimal(char ds[], unsigned ndigs, unsigned nzin, _big_float *pbf) argument
[all...]
H A Ddecimal_bin.c34 decimal_to_binary_integer(ds, ndigs, nzeros, nsig, pb)
36 unsigned ndigs; /* Input number of explicit digits in ds. */
42 * Converts a decimal integer string ds with ndigs explicit leading digits
56 _integerstring_to_big_decimal(ds, ndigs, nzeros, &nzout, &d);
109 decimal_to_binary_fraction(ds, ndigs, nzeros, nsig, pb)
111 unsigned ndigs; /* Number of explicit digits to read. */
118 * Converts an explicit decimal string *ds[0]..*ds[ndigs-1] preceded by
131 _fractionstring_to_big_decimal(ds, ndigs, nzeros, &d);
208 unsigned length, ndigs, ntz, nlz, ifrac, nfrac; local
222 ndigs
[all...]
H A Ddouble_decim.c107 * length returned in *ndigs. Inexactness is indicated by setting
108 * ds[ndigs-1] odd.
117 * ndigs: Output number of explicit digits produced
122 unsigned *nzeros, unsigned *ndigs)
184 *ndigs = is;
196 * of a) an implicit '.' b) *nzeros implicit leading zeros c) *ndigs explicit
198 * *ndigs is at least nfrac digits after the point. Inexactness is indicated
213 * ndigs: Output number of explicit digits produced
218 char ds[], int *nzeros, int *ndigs)
232 *ndigs
121 binary_to_decimal_integer(unpacked *pu, unsigned nsig, char ds[], unsigned *nzeros, unsigned *ndigs) argument
217 binary_to_decimal_fraction(unpacked *pu, unsigned nsig, unsigned nfrac, char ds[], int *nzeros, int *ndigs) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/fp/
H A Ddecimal_bin.c151 int ids, i, ix, exp, ndigs; local
157 ndigs = pd->ndigits;
161 while (ndigs > 0 && ds[ndigs - 1] == '0') {
163 ndigs--;
165 if (ndigs < 1) {
174 d.blength = (ndigs + 3) >> 2;
176 ids = ndigs - (d.blength << 2);
210 i = exp + ndigs - 1;

Completed in 61 milliseconds