Home
last modified time | relevance | path

Searched refs:bexponent (Results 1 – 10 of 10) sorted by relevance

/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A D_base_sup.c41 printf(" + %d * 2** %d", pbf->bsignificand[i], (16 * i + pbf->bexponent)); in _display_big_float()
44 printf(" + %d * 10** %d", pbf->bsignificand[i], (4 * i + pbf->bexponent)); in _display_big_float()
87 pd->bexponent = 0; in _integerstring_to_big_decimal()
94 printf(" _integerstring_to_big_decimal exponent %d ids %d id %d \n", pd->bexponent, ids, id); in _integerstring_to_big_decimal()
134 pbf->bexponent = -(int) (nzin + ndigs); in _fractionstring_to_big_decimal()
141 printf(" _fractionstring_to_big_decimal exponent %d ids %d ibf %d \n", pbf->bexponent, ids, ibf); in _fractionstring_to_big_decimal()
201 assert(pd->bexponent >= -3); in _big_decimal_to_big_binary()
202 assert(pd->bexponent <= 3); in _big_decimal_to_big_binary()
204 pb->bexponent = 0; in _big_decimal_to_big_binary()
207 if ((id == 0) && (pd->bexponent < 0)) { in _big_decimal_to_big_binary()
[all …]
H A Ddecimal_bin.c65 pb->bexponent = 0x7fff;
96 pb->bexponent = pbout->bexponent + 16 * (pbout->blength - allweneed);
146 pb->bexponent = 0x7fff;
167 if (pdout->bexponent <= -4) {
169 excess = (-pdout->bexponent) / 4;
181 (pdout)->bexponent += 4 * excess;
186 pb->bexponent = -twopower;
249 if (bi.bexponent == 0x7fff) { /* Too big for buffer. */
254 sigint = 16 * (bi.blength + bi.bexponent - 1);
260 bi.bexponent = 0;
[all …]
H A D_times_power.c189 (*pnewbf)->bexponent = pbf->bexponent; in _big_float_times_power()
208 discard = (-pbf->bexponent) / 16; in _big_float_times_power()
211 discard = (-pbf->bexponent) / 4; in _big_float_times_power()
241 pbf->bexponent += 16 * (lz[i])[tablepower[i]]; in _big_float_times_power()
408 int deletelimit=(1-((pbf->bexponent+3)/4)); in _big_float_times_power()
429 pbf->bexponent += 16 * trailing_zeros_to_delete; in _big_float_times_power()
432 pbf->bexponent += 4 * trailing_zeros_to_delete; in _big_float_times_power()
446 pbfold->bexponent = pbf->bexponent; in _big_float_times_power()
H A D_sprintf_sup.c265 pb->bexponent = 0; in _unpacked_to_big_float()
312 for (i = 0; i <= (pb->bexponent - 16); i += 16) { /* Multiply by 2**16 for in _big_binary_to_big_decimal()
316 if (pb->bexponent > i) in _big_binary_to_big_decimal()
317 _left_shift_base_ten(pd, (short unsigned) (pb->bexponent - i)); in _big_binary_to_big_decimal()
318 pd->bexponent = 0; in _big_binary_to_big_decimal()
H A Ddouble_decim.c185 *nzeros = pd->bexponent; in binary_to_decimal_integer()
241 b.bexponent = e; in binary_to_decimal_fraction()
283 if (pb->bexponent <= -16) { in binary_to_decimal_fraction()
285 excess = (-pb->bexponent) / 16; in binary_to_decimal_fraction()
297 pb->bexponent += 16 * excess; in binary_to_decimal_fraction()
299 if (pb->bexponent < 0) { in binary_to_decimal_fraction()
300 _right_shift_base_two(pb, (short unsigned) -pb->bexponent, &stickyshift); in binary_to_decimal_fraction()
H A Dbase_conversion.h228 short int bexponent; /* member
/titanic_50/usr/src/lib/libc/port/fp/
H A Ddouble_decim.c93 if (pb->bexponent + ((pb->blength - 1) << 4) >= 0) { in __big_binary_to_big_decimal()
99 pb->bexponent + (i << 4) >= 0; i--) { in __big_binary_to_big_decimal()
121 if (i >= 0 && pb->bexponent + (i << 4) > -16) { in __big_binary_to_big_decimal()
122 s = pb->bexponent + (i << 4) + 16; in __big_binary_to_big_decimal()
141 pd->bexponent = 0; in __big_binary_to_big_decimal()
148 if (pb->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()
185 e = pf->bexponent = -DECIMAL_STRING_LENGTH - 2; in __big_decimal_to_string()
187 e = pf->bexponent + (i << 2); in __big_decimal_to_string()
229 for (e = efirst; e >= pf->bexponent + (pf->blength << 2) && in __big_decimal_to_string()
[all …]
H A Ddecimal_bin.c64 if (pd->bexponent + ((pd->blength - 1) << 2) >= 0) { in __big_decimal_to_big_binary()
68 pd->bexponent + (i << 2) >= 0; i--) { in __big_decimal_to_big_binary()
87 if (i >= 0 && pd->bexponent + (i << 2) > -4) { in __big_decimal_to_big_binary()
88 s = pd->bexponent + (i << 2) + 4; in __big_decimal_to_big_binary()
128 pb->bexponent = 0; in __big_decimal_to_big_binary()
135 if (pd->bexponent > 0) { in __big_decimal_to_big_binary()
137 __big_float_times_power(pb, 10, pd->bexponent, nsig, ppb); in __big_decimal_to_big_binary()
173 d.bexponent = exp; in __decimal_to_unpacked()
236 pbb->bexponent -= powtwo; in __decimal_to_unpacked()
259 px->exponent = pbb->bexponent + (pbb->blength << 4) - 1; in __decimal_to_unpacked()
H A D__x_power.c307 pbf->bexponent += (short)n; in __big_float_times_power()
315 pbf->bexponent += (short)n; /* now need to multiply by 5**n */ in __big_float_times_power()
368 (*pnewbf)->bexponent = pbf->bexponent; in __big_float_times_power()
517 pbf->bexponent += trailing_zeros_to_delete << in __big_float_times_power()
/titanic_50/usr/src/lib/libc/inc/
H A Dbase_conversion.h219 short int bexponent; member