Home
last modified time | relevance | path

Searched refs:ndigs (Results 1 – 5 of 5) sorted by relevance

/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A D_base_sup.c56 _integerstring_to_big_decimal(char ds[], unsigned ndigs, unsigned nzin, in _integerstring_to_big_decimal() argument
70 printf(" _integerstring_to_big_decimal: ndigs %d nzin %d ds %s \n", ndigs, nzin, ds); in _integerstring_to_big_decimal()
75 extras = ndigs % 4; in _integerstring_to_big_decimal()
85 #define IDIGIT(i) ((i < 0) ? 0 : ((i < ndigs) ? (ds[i] - '0') : 0)) in _integerstring_to_big_decimal()
88 pd->blength = (ndigs + taken + 3) / 4; in _integerstring_to_big_decimal()
90 ids = (ndigs + taken) - 4 * pd->blength; in _integerstring_to_big_decimal()
100 for (; ids < (int) (ndigs + taken - 4); ids += 4) { /* Additional digits to in _integerstring_to_big_decimal()
119 _fractionstring_to_big_decimal(char ds[], unsigned ndigs, unsigned nzin, in _fractionstring_to_big_decimal() argument
131 printf(" _fractionstring_to_big_decimal ndigs %d nzin %d s %s \n", ndigs, nzin, ds); in _fractionstring_to_big_decimal()
134 pbf->bexponent = -(int) (nzin + ndigs); in _fractionstring_to_big_decimal()
[all …]
H A Ddecimal_bin.c34 decimal_to_binary_integer(ds, ndigs, nzeros, nsig, pb) in decimal_to_binary_integer() argument
36 unsigned ndigs; /* Input number of explicit digits in ds. */
56 _integerstring_to_big_decimal(ds, ndigs, nzeros, &nzout, &d);
109 decimal_to_binary_fraction(ds, ndigs, nzeros, nsig, pb) in decimal_to_binary_fraction() argument
111 unsigned ndigs; /* Number of explicit digits to read. */
131 _fractionstring_to_big_decimal(ds, ndigs, nzeros, &d);
208 unsigned length, ndigs, ntz, nlz, ifrac, nfrac; local
222 ndigs = length;
228 ndigs = 0;
234 ndigs = length + pd->exponent;
[all …]
H A Ddouble_decim.c122 unsigned *nzeros, unsigned *ndigs) in binary_to_decimal_integer() argument
184 *ndigs = is; in binary_to_decimal_integer()
218 char ds[], int *nzeros, int *ndigs) in binary_to_decimal_fraction() argument
232 *ndigs = i; in binary_to_decimal_fraction()
320 *ndigs = is; in binary_to_decimal_fraction()
/titanic_44/usr/src/lib/libc/port/fp/
H A Ddecimal_bin.c151 int ids, i, ix, exp, ndigs; in __decimal_to_unpacked() local
157 ndigs = pd->ndigits; in __decimal_to_unpacked()
161 while (ndigs > 0 && ds[ndigs - 1] == '0') { in __decimal_to_unpacked()
163 ndigs--; in __decimal_to_unpacked()
165 if (ndigs < 1) { in __decimal_to_unpacked()
174 d.blength = (ndigs + 3) >> 2; in __decimal_to_unpacked()
176 ids = ndigs - (d.blength << 2); in __decimal_to_unpacked()
210 i = exp + ndigs - 1; in __decimal_to_unpacked()
/titanic_44/usr/src/lib/json_nvlist/
H A Djson_nvlist.c210 int ndigs = 0; in collect_string_escape() local
216 while (ndigs < 4) { in collect_string_escape()
217 if ((digs[ndigs++] = popchar(s)) == '\0') { in collect_string_escape()