Home
last modified time | relevance | path

Searched refs:significand (Results 1 – 25 of 48) sorted by relevance

12

/titanic_44/usr/src/lib/libc/port/fp/
H A Dpack_float.c41 for (i = 0; (pu->significand[i] == 0) && (i < UNPACKED_SIZE); in __fp_rightshift()
48 pu->significand[i] = 0; in __fp_rightshift()
49 pu->significand[UNPACKED_SIZE - 1] = 1; in __fp_rightshift()
54 if (pu->significand[UNPACKED_SIZE - 1] != 0) in __fp_rightshift()
55 pu->significand[UNPACKED_SIZE - 2] |= 1; in __fp_rightshift()
57 pu->significand[i + 1] = pu->significand[i]; in __fp_rightshift()
58 pu->significand[0] = 0; in __fp_rightshift()
64 high = pu->significand[i] >> n; in __fp_rightshift()
65 low = pu->significand[i] << (32 - n); in __fp_rightshift()
66 pu->significand[i] = shiftout | high; in __fp_rightshift()
[all …]
H A Ddecimal_bin.c241 px->significand[ix++] = (pbb->bsignificand[i] << 16) | in __decimal_to_unpacked()
247 px->significand[ix++] = pbb->bsignificand[i] << 16; in __decimal_to_unpacked()
249 px->significand[ix++] = 0; in __decimal_to_unpacked()
255 px->significand[4] |= 1; in __decimal_to_unpacked()
258 px->significand[4] |= 1; in __decimal_to_unpacked()
262 while (px->significand[0] < 0x80000000u) { in __decimal_to_unpacked()
263 px->significand[0] = (px->significand[0] << 1) | in __decimal_to_unpacked()
264 (px->significand[1] >> 31); in __decimal_to_unpacked()
265 px->significand[1] = (px->significand[1] << 1) | in __decimal_to_unpacked()
266 (px->significand[2] >> 31); in __decimal_to_unpacked()
[all …]
H A Dhex_bin.c62 pu->significand[i] = 0; in __hex_to_unpacked()
68 pu->significand[i >> 3] |= HEXVAL(pd->ds[i]) << in __hex_to_unpacked()
73 if (pu->significand[0] == 0) { in __hex_to_unpacked()
79 while (pu->significand[0] < 0x80000000u) { in __hex_to_unpacked()
80 pu->significand[0] = (pu->significand[0] << 1) | in __hex_to_unpacked()
81 (pu->significand[1] >> 31); in __hex_to_unpacked()
82 pu->significand[1] = (pu->significand[1] << 1) | in __hex_to_unpacked()
83 (pu->significand[2] >> 31); in __hex_to_unpacked()
84 pu->significand[2] = (pu->significand[2] << 1) | in __hex_to_unpacked()
85 (pu->significand[3] >> 31); in __hex_to_unpacked()
[all …]
H A Ddouble_decim.c460 pf->bsignificand[2] = x->f.msw.significand & 0xffff; in __double_to_bigfloat()
461 pf->bsignificand[3] = x->f.msw.significand >> 16; in __double_to_bigfloat()
486 pf->bsignificand[2] = x->f.significand & 0xffff; in __extended_to_bigfloat()
487 pf->bsignificand[3] = x->f.significand >> 16; in __extended_to_bigfloat()
513 pf->bsignificand[6] = x->f.msw.significand; in __quadruple_to_bigfloat()
542 if (kluge->f.msw.significand == 0) { in single_to_decimal()
577 if (kluge->f.msw.significand == 0) in single_to_decimal()
579 else if (kluge->f.msw.significand >= 0x400000) in single_to_decimal()
613 if (kluge->f.msw.significand == 0 && in double_to_decimal()
622 if (kluge->f.msw.significand == 0 && in double_to_decimal()
[all …]
H A D_base_sup.c101 if ((kluge.f.msw.significand == 0) && in __class_quadruple()
109 if ((kluge.f.msw.significand == 0) && in __class_quadruple()
114 else if ((kluge.f.msw.significand & 0xffff) >= in __class_quadruple()
/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A Dpack_float.c41 for (i = 0; (pu->significand[i] == 0) && (i < UNPACKED_SIZE); i++);
47 pu->significand[i] = 0;
48 pu->significand[UNPACKED_SIZE - 1] = 1;
53 if (pu->significand[UNPACKED_SIZE - 1] != 0)
54 pu->significand[UNPACKED_SIZE - 2] |= 1;
56 pu->significand[i + 1] = pu->significand[i];
57 pu->significand[0] = 0;
63 high = pu->significand[i] >> n;
64 low = pu->significand[i] << (32 - n);
65 pu->significand[i] = shiftout | high;
[all …]
H A D_Qfpack.c88 pu->significand[3]++;
89 if (pu->significand[3] == 0) {
90 pu->significand[2]++;
91 if (pu->significand[2] == 0) {
92 pu->significand[1]++;
93 if (pu->significand[1] == 0) {
94 pu->significand[0]++; /* rounding carried out */
95 if( pu->significand[0] == 0x20000) {
97 pu->significand[0] = 0x10000;
105 pu->significand[3] &= 0xfffffffe; /* force round to even */
[all …]
H A D_Qfutility.c45 u0 = pu->significand[0];
46 u1 = pu->significand[1];
47 u2 = pu->significand[2];
48 u3 = pu->significand[3];
79 pu->significand[0] = u0;
80 pu->significand[1] = u1;
81 pu->significand[2] = u2;
82 pu->significand[3] = u3;
96 if (((*pu).significand[0] | (*pu).significand[1]
97 | (*pu).significand[2] | (*pu).significand[3]) == 0){
[all …]
H A D_unpack_dble.c40 for (nlzwords = 0; (pu->significand[nlzwords] == 0) && (nlzwords < UNPACKED_SIZE); nlzwords++); in _fp_normalize()
47 pu->significand[i] = pu->significand[i + nlzwords]; in _fp_normalize()
49 pu->significand[i] = 0; in _fp_normalize()
52 for (; pu->significand[UNPACKED_SIZE - 1 - nlzwords] == 0; nlzwords++); in _fp_normalize()
56 t = pu->significand[0]; in _fp_normalize()
69 high = pu->significand[i] << nlzbits; in _fp_normalize()
70 low = pu->significand[i] >> (32 - nlzbits); in _fp_normalize()
71 pu->significand[i] = shiftout | high; in _fp_normalize()
92 if ((kluge.f.msw.significand == 0) && (kluge.f.significand2 == 0)) in _class_double()
97 if ((kluge.f.msw.significand == 0) && (kluge.f.significand2 == 0)) in _class_double()
[all …]
H A D_Qfunpack.c48 (*pu).significand[0] = ux>>15;
49 (*pu).significand[1] = (ux&0x7fff)<<17;
50 (*pu).significand[2] = 0;
51 (*pu).significand[3] = 0;
63 u = x.significand;
65 pu->significand[1] = 0;
66 pu->significand[2] = 0;
67 pu->significand[3] = 0;
69 if (x.significand == 0) { /* zero */
75 pu->significand[0]=u;
[all …]
H A D_Qfaddsub.c77 c = fpu_add3wc(&(pz->significand[3]),px->significand[3],
78 py->significand[3],c);
79 c = fpu_add3wc(&(pz->significand[2]),px->significand[2],
80 py->significand[2],c);
81 c = fpu_add3wc(&(pz->significand[1]),px->significand[1],
82 py->significand[1],c);
83 c = fpu_add3wc(&(pz->significand[0]),px->significand[0],
84 py->significand[0],c);
87 if(pz->significand[0]>=0x20000) {
141 z = pz->significand;
[all …]
H A Dunpack_float.c40 if (kluge.f.msw.significand == 0) in _class_single()
45 if (kluge.f.msw.significand == 0) in _class_single()
47 else if (kluge.f.msw.significand >= 0x400000) in _class_single()
64 if ((kluge.f.significand == 0) && (kluge.f.significand2 == 0)) in _class_extended()
69 if (((kluge.f.significand & 0x7fffffff) == 0) && (kluge.f.significand2 == 0)) in _class_extended()
71 else if ((kluge.f.significand & 0x7fffffff) >= 0x40000000) in _class_extended()
88 pu->significand[i] = 0; in _unpack_single()
90 if (x.f.msw.significand == 0) { /* zero */ in _unpack_single()
96 pu->significand[0] = x.f.msw.significand << 9; in _unpack_single()
101 if (x.f.msw.significand == 0) { /* inf */ in _unpack_single()
[all …]
H A D_Qfmul.c71 x = px->significand; /* save typing */
75 y = py->significand[3]; /* py->significand[3] * x */
96 y = py->significand[2]; /* py->significand[2] * x */
121 y = py->significand[1]; /* py->significand[1] * x */
147 y = py->significand[0]; /* y is of form 0x0001???? */
170 pz->significand[3]=((acc[2]&1)<<31)|(acc[3]>>1);
171 pz->significand[2]=((acc[1]&1)<<31)|(acc[2]>>1);
172 pz->significand[1]=((acc[0]&1)<<31)|(acc[1]>>1);
173 pz->significand[0]=(acc[0]>>1);
178 pz->significand[3]=acc[3];
[all …]
H A Ddecimal_bin.c251 px->significand[0] = 0x80000000;
278 px->significand[0] = 0x80000000;
422 kluge.f.msw.significand = 0;
426 kluge.f.msw.significand = 0;
430 kluge.f.msw.significand = 0x7fffff;
434 kluge.f.msw.significand = 0x3fffff;
441 u.significand[0] = 0x80000000;
457 u.significand[0] = 0x80000000;
487 kluge.f.msw.significand = 0;
492 kluge.f.msw.significand = 0;
[all …]
H A Dbase_conversion.h79 unsigned significand[UNPACKED_SIZE]; /* Last word is round */ member
85 unsigned significand:23; member
91 unsigned significand:20; member
103 unsigned significand:16; member
119 unsigned significand; member
133 unsigned significand:23; member
139 unsigned significand:20; member
151 unsigned significand:16; member
165 unsigned significand; member
H A D_Qfdiv.c71 r[0] = px->significand[0];
72 r[1] = px->significand[1];
73 r[2] = px->significand[2];
74 r[3] = px->significand[3];
75 y = py->significand;
98 pz->significand[0]=q;
116 pz->significand[1] = q;
134 pz->significand[2] = q;
152 pz->significand[3] = q;
188 x = px->significand;
[all …]
H A D_Qquad.h118 unsigned significand : 23 ; member
127 unsigned significand : 20 ; member
135 unsigned significand : 16 ; member
/titanic_44/usr/src/uts/sparc/fpu/
H A Dpack.c92 pu->significand[3]++; in round()
93 if (pu->significand[3] == 0) { in round()
94 pu->significand[2]++; in round()
95 if (pu->significand[2] == 0) { in round()
96 pu->significand[1]++; in round()
97 if (pu->significand[1] == 0) { in round()
98 pu->significand[0]++; /* rounding carried out */ in round()
99 if (pu->significand[0] == 0x20000) { in round()
101 pu->significand[0] = 0x10000; in round()
109 pu->significand[3] &= 0xfffffffe; /* force round to even */ in round()
[all …]
H A Dutility.c79 u0 = pu->significand[0]; in fpu_normalize()
80 u1 = pu->significand[1]; in fpu_normalize()
81 u2 = pu->significand[2]; in fpu_normalize()
82 u3 = pu->significand[3]; in fpu_normalize()
119 pu->significand[0] = u0; in fpu_normalize()
120 pu->significand[1] = u1; in fpu_normalize()
121 pu->significand[2] = u2; in fpu_normalize()
122 pu->significand[3] = u3; in fpu_normalize()
134 if (((*pu).significand[0] | (*pu).significand[1] in fpu_rightshift()
135 | (*pu).significand[2] | (*pu).significand[3]) == 0) { in fpu_rightshift()
[all …]
H A Dunpack.c50 (*pu).significand[0] = ux>>15; in unpackint32()
51 (*pu).significand[1] = (ux&0x7fff)<<17; in unpackint32()
52 (*pu).significand[2] = 0; in unpackint32()
53 (*pu).significand[3] = 0; in unpackint32()
89 (*pu).significand[0] = ux.i[0]>>15; in unpackint64()
90 (*pu).significand[1] = (((ux.i[0]&0x7fff)<<17) | (ux.i[1]>>15)); in unpackint64()
91 (*pu).significand[2] = (ux.i[1]&0x7fff)<<17; in unpackint64()
92 (*pu).significand[3] = 0; in unpackint64()
106 U = x.significand; in unpacksingle()
108 pu->significand[1] = 0; in unpacksingle()
[all …]
H A Daddsub.c76 c = fpu_add3wc(&(pz->significand[3]), px->significand[3],
77 py->significand[3], c);
78 c = fpu_add3wc(&(pz->significand[2]), px->significand[2],
79 py->significand[2], c);
80 c = fpu_add3wc(&(pz->significand[1]), px->significand[1],
81 py->significand[1], c);
82 c = fpu_add3wc(&(pz->significand[0]), px->significand[0],
83 py->significand[0], c);
86 if (pz->significand[0] >= 0x20000) {
138 z = pz->significand;
[all …]
H A Dmul.c72 x = px->significand; /* save typing */
77 y = py->significand[3]; /* py->significand[3] * x */
98 y = py->significand[2]; /* py->significand[2] * x */
123 y = py->significand[1]; /* py->significand[1] * x */
149 y = py->significand[0]; /* y is of form 0x0001???? */
172 pz->significand[3] = ((acc[2]&1)<<31)|(acc[3]>>1);
173 pz->significand[2] = ((acc[1]&1)<<31)|(acc[2]>>1);
174 pz->significand[1] = ((acc[0]&1)<<31)|(acc[1]>>1);
175 pz->significand[0] = (acc[0]>>1);
180 pz->significand[3] = acc[3];
[all …]
H A Ddiv.c72 r[0] = px->significand[0];
73 r[1] = px->significand[1];
74 r[2] = px->significand[2];
75 r[3] = px->significand[3];
76 y = py->significand;
99 pz->significand[0] = q;
117 pz->significand[1] = q;
135 pz->significand[2] = q;
153 pz->significand[3] = q;
189 x = px->significand;
[all …]
/titanic_44/usr/src/lib/libc/inc/
H A Dbase_conversion.h66 unsigned significand[UNPACKED_SIZE]; member
77 unsigned significand:23; member
83 unsigned significand:20; member
95 unsigned significand:16; member
111 unsigned significand; member
127 unsigned significand:23; member
133 unsigned significand:20; member
145 unsigned significand:16; member
159 unsigned significand; member
/titanic_44/usr/src/lib/libm/common/C/
H A Dsignificand.c30 #pragma weak __significand = significand
35 significand(double x) { in significand() function

12