Lines Matching refs:pu
36 unpacked *pu, /* unpacked result */ in unpackint32() argument
41 pu->sticky = pu->rounded = 0; in unpackint32()
43 pu->sign = 0; in unpackint32()
44 pu->fpclass = fp_zero; in unpackint32()
46 (*pu).sign = x < 0; in unpackint32()
47 (*pu).fpclass = fp_normal; in unpackint32()
48 (*pu).exponent = INTEGER_BIAS; in unpackint32()
50 (*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()
54 fpu_normalize(pu); in unpackint32()
70 unpacked *pu, /* unpacked result */ in unpackint64() argument
80 pu->sticky = pu->rounded = 0; in unpackint64()
82 pu->sign = 0; in unpackint64()
83 pu->fpclass = fp_zero; in unpackint64()
85 (*pu).sign = x < 0; in unpackint64()
86 (*pu).fpclass = fp_normal; in unpackint64()
87 (*pu).exponent = LONGLONG_BIAS; in unpackint64()
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()
93 fpu_normalize(pu); in unpackint64()
100 unpacked *pu, /* unpacked result */ in unpacksingle() argument
105 pu->sticky = pu->rounded = 0; in unpacksingle()
107 (*pu).sign = x.sign; in unpacksingle()
108 pu->significand[1] = 0; in unpacksingle()
109 pu->significand[2] = 0; in unpacksingle()
110 pu->significand[3] = 0; in unpacksingle()
113 pu->fpclass = fp_zero; in unpacksingle()
116 pu->fpclass = fp_normal; in unpacksingle()
117 pu->exponent = -SINGLE_BIAS-6; in unpacksingle()
118 pu->significand[0] = U; in unpacksingle()
119 fpu_normalize(pu); in unpacksingle()
124 pu->fpclass = fp_infinity; in unpacksingle()
128 pu->fpclass = fp_quiet; in unpacksingle()
130 pu->fpclass = fp_signaling; in unpacksingle()
133 pu->significand[0] = 0x18000 | (U >> 7); in unpacksingle()
134 (*pu).significand[1] = ((U&0x7f)<<25); in unpacksingle()
138 (*pu).exponent = x.exponent - SINGLE_BIAS; in unpacksingle()
139 (*pu).fpclass = fp_normal; in unpacksingle()
140 (*pu).significand[0] = 0x10000|(U>>7); in unpacksingle()
141 (*pu).significand[1] = ((U&0x7f)<<25); in unpacksingle()
147 unpacked *pu, /* unpacked result */ in unpackdouble() argument
153 pu->sticky = pu->rounded = 0; in unpackdouble()
155 (*pu).sign = x.sign; in unpackdouble()
156 pu->significand[1] = y; in unpackdouble()
157 pu->significand[2] = 0; in unpackdouble()
158 pu->significand[3] = 0; in unpackdouble()
161 pu->fpclass = fp_zero; in unpackdouble()
164 pu->fpclass = fp_normal; in unpackdouble()
165 pu->exponent = -DOUBLE_BIAS-3; in unpackdouble()
166 pu->significand[0] = U; in unpackdouble()
167 fpu_normalize(pu); in unpackdouble()
172 pu->fpclass = fp_infinity; in unpackdouble()
176 pu->fpclass = fp_quiet; in unpackdouble()
178 pu->fpclass = fp_signaling; in unpackdouble()
181 pu->significand[0] = 0x18000 | (U >> 4); in unpackdouble()
182 (*pu).significand[1] = ((U&0xf)<<28)|(y>>4); in unpackdouble()
183 (*pu).significand[2] = ((y&0xf)<<28); in unpackdouble()
187 (*pu).exponent = x.exponent - DOUBLE_BIAS; in unpackdouble()
188 (*pu).fpclass = fp_normal; in unpackdouble()
189 (*pu).significand[0] = 0x10000|(U>>4); in unpackdouble()
190 (*pu).significand[1] = ((U&0xf)<<28)|(y>>4); in unpackdouble()
191 (*pu).significand[2] = ((y&0xf)<<28); in unpackdouble()
197 unpacked *pu, /* unpacked result */ in unpackextended() argument
205 pu->sticky = pu->rounded = 0; in unpackextended()
207 (*pu).sign = x.sign; in unpackextended()
208 (*pu).fpclass = fp_normal; in unpackextended()
209 (*pu).exponent = x.exponent - EXTENDED_BIAS; in unpackextended()
210 (*pu).significand[0] = (x.exponent == 0) ? U : 0x10000|U; in unpackextended()
211 (*pu).significand[1] = y; in unpackextended()
212 (*pu).significand[2] = z; in unpackextended()
213 (*pu).significand[3] = w; in unpackextended()
215 if ((z|y|w|pu->significand[0]) == 0) { /* zero */ in unpackextended()
216 pu->fpclass = fp_zero; in unpackextended()
220 fpu_normalize(pu); in unpackextended()
221 pu->exponent += 1; in unpackextended()
227 pu->fpclass = fp_infinity; in unpackextended()
231 pu->fpclass = fp_quiet; in unpackextended()
233 pu->fpclass = fp_signaling; in unpackextended()
236 pu->significand[0] |= 0x8000; /* make quiet */ in unpackextended()
245 unpacked *pu, /* unpacked result */ in _fp_unpack() argument
259 unpackint32(pu, f.int32_reg); in _fp_unpack()
266 unpackint64(pu, fp.f.int64_reg); in _fp_unpack()
270 unpacksingle(pfpsd, pu, f.single_reg); in _fp_unpack()
276 unpackdouble(pfpsd, pu, fp.f.double_reg, fp.y[1]); in _fp_unpack()
283 unpackextended(pfpsd, pu, fp.f.extended_reg, fp.y[1], in _fp_unpack()
292 uint32_t *pu, /* unpacked result */ in _fp_unpack_word() argument
295 pfpsd->fp_current_read_freg(pu, n, pfpsd); in _fp_unpack_word()
301 uint64_t *pu, /* unpacked result */ in _fp_unpack_extword() argument
306 pfpsd->fp_current_read_dreg(pu, DOUBLE(n), pfpsd); in _fp_unpack_extword()