Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A D_sprintf_sup.c108 p = _lshift_b10000((_BIG_FLOAT_DIGIT) pbf->bsignificand[j], multiplier, carry); in _left_shift_base_ten()
109 pbf->bsignificand[j] = (_BIG_FLOAT_DIGIT) (p & 0xffff); in _left_shift_base_ten()
114 pbf->bsignificand[j++] = (_BIG_FLOAT_DIGIT) (p & 0xffff); in _left_shift_base_ten()
135 p = _lshift_b65536(pbf->bsignificand[j], multiplier, carry); in _left_shift_base_two()
136 pbf->bsignificand[j] = (_BIG_FLOAT_DIGIT) (p & 0xffff); in _left_shift_base_two()
140 pbf->bsignificand[j++] = (_BIG_FLOAT_DIGIT) (_carry_out_b65536(carry) & 0xffff); in _left_shift_base_two()
158 p = _rshift_b65536(pbf->bsignificand[j], multiplier, carry); in _right_shift_base_two()
159 pbf->bsignificand[j] = (_BIG_FLOAT_DIGIT) (p >> 16); in _right_shift_base_two()
179 p = _prodc_b10000((_BIG_FLOAT_DIGIT) pbf->bsignificand[j], multiplier, carry); in _multiply_base_ten()
180 pbf->bsignificand[j] = (_BIG_FLOAT_DIGIT) (p & 0xffff); in _multiply_base_ten()
[all …]
H A D_times_power.c187 _copy_big_float_digits((*pnewbf)->bsignificand, pbf->bsignificand, pbf->blength); in _big_float_times_power()
258 _BIG_FLOAT_DIGIT multiplier = pbf->bsignificand[0]; in _big_float_times_power()
260 …_copy_big_float_digits(pbf->bsignificand, (unsigned short *) &((table[i])[(start[i])[tablepower[i]… in _big_float_times_power()
294 pbf->bsignificand[lengthx + lengthp - 1] = 0; /* Only gets filled by in _big_float_times_power()
309 …_multiply_base_two_vector((short unsigned) (istop - istart + 1), &(pbf->bsignificand[istart]), &(p… in _big_float_times_power()
311 _carry_propagate_two((unsigned long) product[2], &(pbf->bsignificand[j + 2])); in _big_float_times_power()
313 _carry_propagate_two((unsigned long) product[1], &(pbf->bsignificand[j + 1])); in _big_float_times_power()
316 …_multiply_base_ten_vector((short unsigned) (istop - istart + 1), &(pbf->bsignificand[istart]), &(p… in _big_float_times_power()
318 _carry_propagate_ten((unsigned long) product[2], &(pbf->bsignificand[j + 2])); in _big_float_times_power()
320 _carry_propagate_ten((unsigned long) product[1], &(pbf->bsignificand[j + 1])); in _big_float_times_power()
[all …]
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()
97 …pd->bsignificand[id] = 1000 * IDIGIT(ids) + 100 * IDIGIT(ids + 1) + 10 * IDIGIT(ids + 2) + IDIGIT(… in _integerstring_to_big_decimal()
103 …pd->bsignificand[id] = 1000 * ds[ids] + 100 * ds[ids + 1] + 10 * ds[ids + 2] + ds[ids + 3] - 1111 … in _integerstring_to_big_decimal()
110 …pd->bsignificand[0] = 1000 * IDIGIT(ids) + 100 * IDIGIT(ids + 1) + 10 * IDIGIT(ids + 2) + IDIGIT(i… in _integerstring_to_big_decimal()
146 …pbf->bsignificand[ibf] = 1000 * FDIGIT(ids) + 100 * FDIGIT(ids + 1) + 10 * FDIGIT(ids + 2) + FDIGI… in _fractionstring_to_big_decimal()
152 …pbf->bsignificand[ibf] = 1000 * ds[ids - nzin] + 100 * ds[ids + 1 - nzin] + 10 * ds[ids + 2 - nzin… in _fractionstring_to_big_decimal()
159 …pbf->bsignificand[0] = 1000 * FDIGIT(ids) + 100 * FDIGIT(ids + 1) + 10 * FDIGIT(ids + 2) + FDIGIT(… in _fractionstring_to_big_decimal()
179 p = _prod_10000_b65536(pbf->bsignificand[j], carry); in _mul_10000short()
180 pbf->bsignificand[j] = (_BIG_FLOAT_DIGIT) (p & 0xffff); in _mul_10000short()
[all …]
H A Ddecimal_bin.c90 pb->bsignificand[i] = pbout->bsignificand[i + pbout->blength - allweneed];
91 for (i = 0; (pbout->bsignificand[i] == 0); i++);
93 pb->bsignificand[0] |= 1; /* Stick discarded bits. */
173 for (i = 0; (i < excess) && ((pdout)->bsignificand[i] == 0); i++);
175 (pdout)->bsignificand[excess] |= 1; /* Sticky bit for
178 (pdout)->bsignificand[i - excess] = (pdout)->bsignificand[i];
259 bi.bsignificand[0] = 0;
273 bi.bsignificand[0] |= 1; /* Stick for fraction. */
295 assert(bi.bsignificand[bi.blength - 1] != 0); /* Normalized bi. */
296 assert(bf.bsignificand[bf.blength - 1] != 0); /* Normalized bf. */
[all …]
H A Ddouble_decim.c171 _fourdigitsquick((short unsigned) pd->bsignificand[pd->blength - 1], s); in binary_to_decimal_integer()
179 _fourdigitsquick((short unsigned) pd->bsignificand[i], &(ds[is])); in binary_to_decimal_integer()
289 for (i = 0; (i < excess) && (pb->bsignificand[i] == 0); i++); in binary_to_decimal_fraction()
291 pb->bsignificand[excess] |= 1; /* Sticky bit for in binary_to_decimal_fraction()
294 pb->bsignificand[i - excess] = pb->bsignificand[i]; in binary_to_decimal_fraction()
302 pb->bsignificand[0] |= 1; /* Stick to lsb. */ in binary_to_decimal_fraction()
307 while (d.bsignificand[i] == 0) in binary_to_decimal_fraction()
309 _fourdigitsquick((short unsigned) d.bsignificand[i], s); in binary_to_decimal_fraction()
315 _fourdigitsquick((short unsigned) d.bsignificand[i], &(ds[is])); in binary_to_decimal_fraction()
H A Dbase_conversion.h249 _BIG_FLOAT_DIGIT bsignificand[_BIG_FLOAT_SIZE]; member
/titanic_50/usr/src/lib/libc/port/fp/
H A D__x_power.c61 p = (unsigned int)pbf->bsignificand[j] * multiplier + carry; in __multiply_base_two()
62 pbf->bsignificand[j] = p & 0xffff; in __multiply_base_two()
66 pbf->bsignificand[j++] = carry; in __multiply_base_two()
82 p = (unsigned int)pbf->bsignificand[j] * multiplier + carry; in __multiply_base_ten()
83 carry = __quorem10000(p, &pbf->bsignificand[j]); in __multiply_base_ten()
86 carry = __quorem10000(carry, &pbf->bsignificand[j]); in __multiply_base_ten()
104 p = ((unsigned int)pbf->bsignificand[j] << multiplier) + carry; in __multiply_base_ten_by_two()
105 carry = __quorem10000(p, &pbf->bsignificand[j]); in __multiply_base_ten_by_two()
108 carry = __quorem10000(carry, &pbf->bsignificand[j]); in __multiply_base_ten_by_two()
365 (void) memcpy((*pnewbf)->bsignificand, pbf->bsignificand, in __big_float_times_power()
[all …]
H A Ddouble_decim.c94 carry = pb->bsignificand[pb->blength - 1]; 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()
101 carry = pb->bsignificand[i]; 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()
124 carry = pb->bsignificand[i] >> (16 - s); in __big_binary_to_big_decimal()
126 carry += (unsigned int)pd->bsignificand[j] << s; in __big_binary_to_big_decimal()
[all …]
H A Ddecimal_bin.c65 pb->bsignificand[0] = pd->bsignificand[pd->blength - 1]; in __big_decimal_to_big_binary()
70 carry = pd->bsignificand[i]; in __big_decimal_to_big_binary()
72 carry += (unsigned int)pb->bsignificand[j] in __big_decimal_to_big_binary()
74 pb->bsignificand[j] = carry & 0xffff; in __big_decimal_to_big_binary()
78 pb->bsignificand[j++] = carry; in __big_decimal_to_big_binary()
90 carry = pd->bsignificand[i]; in __big_decimal_to_big_binary()
95 carry += (unsigned int)pb->bsignificand[j] in __big_decimal_to_big_binary()
97 pb->bsignificand[j] = carry & 0xffff; in __big_decimal_to_big_binary()
104 carry += (unsigned int)pb->bsignificand[j] in __big_decimal_to_big_binary()
106 pb->bsignificand[j] = carry & 0xffff; in __big_decimal_to_big_binary()
[all …]
/titanic_50/usr/src/lib/libc/inc/
H A Dbase_conversion.h220 unsigned short bsignificand[_BIG_FLOAT_SIZE]; member