/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | _Qfpack.c | 96 pu->exponent++; 119 if (pu->exponent >= 32) 121 fpu_rightshift(pu, 112 - pu->exponent); 152 px->exponent = 0; 157 px->exponent = 0xff; 163 px->exponent = 0xff; 168 pu->exponent += SINGLE_BIAS; 169 if (pu->exponent <= 0) { 170 px->exponent = 0; 171 fpu_rightshift(pu, 1 - pu->exponent); [all …]
|
H A D | pack_float.c | 146 pu->exponent++; 165 kluge.f.msw.exponent = 0; 170 kluge.f.msw.exponent = 0xff; 174 kluge.f.msw.exponent = 0xff; 179 pu->exponent += SINGLE_BIAS; 180 if (pu->exponent <= 0) { 181 kluge.f.msw.exponent = 0; 182 _fp_rightshift(pu, 1 - pu->exponent); 186 kluge.f.msw.exponent = 1; 199 pu->exponent += 1; [all …]
|
H A D | decimal_bin.c | 221 if (pd->exponent >= 0) {/* All integer digits. */ 223 ntz = pd->exponent; /* Trailing zeros. */ 227 } else if (length <= -pd->exponent) { /* No integer digits. */ 232 nlz = -pd->exponent - length; /* Leading zeros. */ 234 ndigs = length + pd->exponent; 237 nfrac = -pd->exponent; 250 px->exponent = 0x000fffff; 277 px->exponent = -0x000fffff; 421 kluge.f.msw.exponent = 0; 425 kluge.f.msw.exponent = 0xff; [all …]
|
H A D | _Qfunpack.c | 46 (*pu).exponent = INTEGER_BIAS; 68 if (x.exponent == 0) { /* zero or sub */ 74 pu->exponent = -SINGLE_BIAS-6; 79 } else if (x.exponent == 0xff) { /* inf or nan */ 95 (*pu).exponent = x.exponent - SINGLE_BIAS; 114 if (x.exponent == 0) { /* zero or sub */ 120 pu->exponent = -DOUBLE_BIAS-3; 125 } else if (x.exponent == 0x7ff) { /* inf or nan */ 142 (*pu).exponent = x.exponent - DOUBLE_BIAS; 160 (*pu).exponent = x.exponent - EXTENDED_BIAS; [all …]
|
H A D | _Qfaddsub.c | 60 if (px->exponent < py->exponent) { /* Reverse. */ 68 pz->exponent = px->exponent; 71 if (px->exponent != py->exponent) { /* pre-alignment required */ 72 fpu_rightshift(py, pz->exponent - py->exponent); 89 pz->exponent ++; /* Renormalize. */ 130 if (px->exponent < py->exponent) { /* Reverse. */ 138 pz->exponent = px->exponent; 143 if (px->exponent == py->exponent) { /* no pre-alignment required */ 165 fpu_rightshift(py, pz->exponent - py->exponent - 1); 188 pz->exponent -= 1;
|
H A D | unpack_float.c | 39 if (kluge.f.msw.exponent == 0) { /* 0 or sub */ in _class_single() 44 } else if (kluge.f.msw.exponent == 0xff) { /* inf or nan */ in _class_single() 63 if (kluge.f.msw.exponent == 0) { /* 0 or sub */ in _class_extended() 68 } else if (kluge.f.msw.exponent == 0x7fff) { /* inf or nan */ in _class_extended() 89 if (x.f.msw.exponent == 0) { /* zero or sub */ in _unpack_single() 95 pu->exponent = -SINGLE_BIAS; in _unpack_single() 100 } else if (x.f.msw.exponent == 0xff) { /* inf or nan */ in _unpack_single() 115 (*pu).exponent = x.f.msw.exponent - SINGLE_BIAS; in _unpack_single() 131 pu->exponent = x.f.msw.exponent - EXTENDED_BIAS; in _unpack_extended() 136 if (x.f.msw.exponent == 0x7fff) { /* inf or nan */ in _unpack_extended() [all …]
|
H A D | _unpack_dble.c | 50 pu->exponent -= 32 * nlzwords; in _fp_normalize() 65 pu->exponent -= nlzbits; in _fp_normalize() 91 if (kluge.f.msw.exponent == 0) { /* 0 or sub */ in _class_double() 96 } else if (kluge.f.msw.exponent == 0x7ff) { /* inf or nan */ in _class_double() 135 if (x.f.msw.exponent == 0) { /* zero or sub */ in _unpack_double() 141 pu->exponent = 12 - DOUBLE_BIAS; in _unpack_double() 146 } else if (x.f.msw.exponent == 0x7ff) { /* inf or nan */ in _unpack_double() 162 (*pu).exponent = x.f.msw.exponent - DOUBLE_BIAS; in _unpack_double() 180 if (kluge.f.msw.exponent == 0) { /* 0 or sub */ in _class_quadruple() 185 } else if (kluge.f.msw.exponent == 0x7fff) { /* inf or nan */ in _class_quadruple() [all …]
|
H A D | char_to_decimal.h | 50 pd->exponent = 0; 219 pd->exponent += nzbp + 1; 290 pd->exponent += nzbp; 291 goto exponent; 307 pd->exponent += nzbp; 337 pd->exponent = -(nzap + 1); 342 pd->exponent += nzbp; 353 pd->exponent -= nzap + 1; 373 pd->exponent -= nfast; 429 pd->exponent += nzbp; [all …]
|
H A D | base_conversion.h | 78 int exponent; /* Unbiased exponent. */ member 86 unsigned exponent:8; member 92 unsigned exponent:11; member 97 unsigned exponent:15; member 104 unsigned exponent:15; member 132 unsigned exponent:8; member 138 unsigned exponent:11; member 144 unsigned exponent:15; member 150 unsigned exponent:15; member
|
H A D | gconvert.c | 80 if ((pd->exponent > 0) || (pd->exponent < -(ndigit + 3))) { /* E format. */ 97 n = pd->exponent + i - 1; 111 if (pd->exponent >= (1 - ndigit)) { /* x.xxx */ 112 for (i = 0; i < (ndigit + pd->exponent);) 122 for (i = 0; i < -(pd->exponent + ndigit); i++)
|
H A D | _Qfdiv.c | 78 pz->exponent = px->exponent - py->exponent; 80 pz->exponent = px->exponent - py->exponent - 1; 189 if (px->exponent & 1) { /* sqrt(1.f * 2**odd) = sqrt (2.+2f) * 191 pz->exponent = (px->exponent - 1) / 2; 198 pz->exponent = px->exponent / 2;
|
H A D | _Qfcompare.c | 61 else if (px->exponent > py->exponent) 63 else if (px->exponent < py->exponent)
|
/titanic_41/usr/src/lib/libc/port/fp/ |
H A D | pack_float.c | 142 pu->exponent++; in round() 164 kluge.f.msw.exponent = 0; in __pack_single() 169 kluge.f.msw.exponent = 0xff; in __pack_single() 173 kluge.f.msw.exponent = 0xff; in __pack_single() 179 pu->exponent += SINGLE_BIAS; in __pack_single() 180 if (pu->exponent <= 0) { in __pack_single() 181 kluge.f.msw.exponent = 0; in __pack_single() 182 __fp_rightshift(pu, 1 - pu->exponent); in __pack_single() 186 kluge.f.msw.exponent = 1; in __pack_single() 199 pu->exponent += 1; in __pack_single() [all …]
|
H A D | decimal_bin.c | 158 exp = pd->exponent; in __decimal_to_unpacked() 259 px->exponent = pbb->bexponent + (pbb->blength << 4) - 1; in __decimal_to_unpacked() 272 px->exponent--; in __decimal_to_unpacked() 345 exp = pd->exponent; in __fast_decimal_to_single() 440 if (pm->rd != fp_nearest || pd->ndigits > 18 || pd->exponent in __fast_decimal_to_double() 441 > __TBL_TENS_EXACT || pd->exponent < -__TBL_TENS_EXACT) in __fast_decimal_to_double() 450 if (pd->exponent > 0) in __fast_decimal_to_double() 451 dds = __mul_set(dds, __tbl_tens[pd->exponent], &e); in __fast_decimal_to_double() 452 else if (pd->exponent < 0) in __fast_decimal_to_double() 453 dds = __div_set(dds, __tbl_tens[-pd->exponent], &e); in __fast_decimal_to_double() [all …]
|
H A D | char_to_decimal.h | 126 pd->exponent = 0; 378 pd->exponent += (nzbp + 1) << expshift; 460 goto exponent; 466 goto exponent; 499 pd->exponent = (-(nzap + 1)) << expshift; 506 pd->exponent -= (nzap + 1) << expshift; 508 pd->exponent += nzbp << expshift; 534 pd->exponent -= nfast << expshift; 629 exponent: 689 pd->exponent -= e; [all …]
|
H A D | fconvert.c | 60 *decpt = dr.exponent + dr.ndigits; in fconvert() 67 if (ndigits > 0 && dr.exponent > -ndigits) { in fconvert() 68 while (i < dr.ndigits + dr.exponent + ndigits) in fconvert() 114 *decpt = dr.exponent + dr.ndigits; in sfconvert() 121 if (ndigits > 0 && dr.exponent > -ndigits) { in sfconvert() 122 while (i < dr.ndigits + dr.exponent + ndigits) in sfconvert() 191 *decpt = dr.exponent + dr.ndigits; in qfconvert()
|
H A D | hex_bin.c | 58 pu->exponent = pd->exponent + (pd->ndigits << 2) - 1; in __hex_to_unpacked() 87 pu->exponent--; in __hex_to_unpacked() 123 kluge.f.msw.exponent = 0; in __hex_to_single() 144 kluge.f.msw.exponent = 0; in __hex_to_double() 168 kluge.f.msw.exponent = 0; in __hex_to_quadruple() 194 kluge.f.msw.exponent = 0; in __hex_to_extended()
|
H A D | double_decim.c | 278 pd->exponent = elast; in __big_decimal_to_string() 318 pd->exponent++; in __big_decimal_to_string() 320 pd->exponent++; in __big_decimal_to_string() 456 pf->bexponent = x->f.msw.exponent - DOUBLE_BIAS - 52; in __double_to_bigfloat() 462 if (x->f.msw.exponent == 0) { in __double_to_bigfloat() 482 pf->bexponent = x->f.msw.exponent - EXTENDED_BIAS - 63; in __extended_to_bigfloat() 488 if (x->f.msw.exponent == 0) { in __extended_to_bigfloat() 506 pf->bexponent = x->f.msw.exponent - QUAD_BIAS - 112; in __quadruple_to_bigfloat() 514 if (x->f.msw.exponent == 0) { in __quadruple_to_bigfloat() 541 if (kluge->f.msw.exponent == 0) { /* 0 or subnormal */ in single_to_decimal() [all …]
|
/titanic_41/usr/src/uts/sparc/fpu/ |
H A D | pack.c | 100 pu->exponent++; in round() 124 if (pu->exponent >= 32) in packint32() 126 fpu_rightshift(pu, 112 - pu->exponent); in packint32() 165 if (pu->exponent >= 64) in packint64() 167 fpu_rightshift(pu, 112 - pu->exponent); in packint64() 204 px->exponent = 0; in packsingle() 209 px->exponent = 0xff; in packsingle() 215 px->exponent = 0xff; in packsingle() 220 pu->exponent += SINGLE_BIAS; in packsingle() 221 if (pu->exponent <= 0) { in packsingle() [all …]
|
H A D | addsub.c | 59 if (px->exponent < py->exponent) { /* Reverse. */ 67 pz->exponent = px->exponent; 70 if (px->exponent != py->exponent) { /* pre-alignment required */ 71 fpu_rightshift(py, pz->exponent - py->exponent); 88 pz->exponent++; /* Renormalize. */ 127 if (px->exponent < py->exponent) { /* Reverse. */ 135 pz->exponent = px->exponent; 140 if (px->exponent == py->exponent) { /* no pre-alignment required */ 166 fpu_rightshift(py, pz->exponent - py->exponent - 1); 193 pz->exponent -= 1;
|
H A D | unpack.c | 48 (*pu).exponent = INTEGER_BIAS; in unpackint32() 87 (*pu).exponent = LONGLONG_BIAS; in unpackint64() 111 if (x.exponent == 0) { /* zero or sub */ in unpacksingle() 117 pu->exponent = -SINGLE_BIAS-6; in unpacksingle() 122 } else if (x.exponent == 0xff) { /* inf or nan */ in unpacksingle() 138 (*pu).exponent = x.exponent - SINGLE_BIAS; in unpacksingle() 159 if (x.exponent == 0) { /* zero or sub */ in unpackdouble() 165 pu->exponent = -DOUBLE_BIAS-3; in unpackdouble() 170 } else if (x.exponent == 0x7ff) { /* inf or nan */ in unpackdouble() 187 (*pu).exponent = x.exponent - DOUBLE_BIAS; in unpackdouble() [all …]
|
H A D | div.c | 79 pz->exponent = px->exponent - py->exponent; 81 pz->exponent = px->exponent - py->exponent - 1; 190 if (px->exponent & 1) { 195 pz->exponent = (px->exponent - 1) / 2; 205 pz->exponent = px->exponent / 2;
|
/titanic_41/usr/src/lib/libc/inc/ |
H A D | base_conversion.h | 65 int exponent; member 78 unsigned exponent:8; member 84 unsigned exponent:11; member 89 unsigned exponent:15; member 96 unsigned exponent:15; member 126 unsigned exponent:8; member 132 unsigned exponent:11; member 138 unsigned exponent:15; member 144 unsigned exponent:15; member
|
/titanic_41/usr/src/head/ |
H A D | nan.h | 60 unsigned exponent :11; member 67 unsigned exponent :11; member 83 unsigned exponent :11; 90 unsigned exponent :11; 102 #define IsNANorINF(X) (((dnan *)&(X))->nan_parts.exponent == 0x7ff) 124 #define NaN(X) (((dnan *)&(X))->nan_parts.exponent == 0x7ff)
|
/titanic_41/usr/src/lib/libc/port/i18n/ |
H A D | wstod.c | 214 pd->exponent = 0; in wstring_to_decimal() 385 pd->exponent += (nzbp + 1) << expshift; in wstring_to_decimal() 436 goto exponent; in wstring_to_decimal() 442 goto exponent; in wstring_to_decimal() 469 pd->exponent = (-(nzap + 1)) << expshift; in wstring_to_decimal() 476 pd->exponent -= (nzap + 1) << expshift; in wstring_to_decimal() 478 pd->exponent += nzbp << expshift; in wstring_to_decimal() 504 pd->exponent -= nfast << expshift; in wstring_to_decimal() 552 exponent: in wstring_to_decimal() 580 pd->exponent -= e; in wstring_to_decimal() [all …]
|