Searched refs:dst_exponent (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/arch/parisc/math-emu/
H A Dfcnvxf.c64 register int src, dst_exponent; sgl_to_sgl_fcnvxf() local
87 dst_exponent = 16; /* initialize for normalization */ sgl_to_sgl_fcnvxf()
90 * a value in dst_exponent indicating the bit position, sgl_to_sgl_fcnvxf()
93 Find_ms_one_bit(src,dst_exponent); sgl_to_sgl_fcnvxf()
95 if (dst_exponent >= 0) src <<= dst_exponent; sgl_to_sgl_fcnvxf() local
98 Sgl_set_exponent(result, 30+SGL_BIAS - dst_exponent); sgl_to_sgl_fcnvxf()
135 register int src, dst_exponent; sgl_to_dbl_fcnvxf() local
158 dst_exponent = 16; /* initialize for normalization */ sgl_to_dbl_fcnvxf()
161 * a value in dst_exponent indicating the bit position, sgl_to_dbl_fcnvxf()
164 Find_ms_one_bit(src,dst_exponent); sgl_to_dbl_fcnvxf()
166 if (dst_exponent >= 0) src <<= dst_exponent; sgl_to_dbl_fcnvxf() local
170 Dbl_set_exponent(resultp1, (30+DBL_BIAS) - dst_exponent); sgl_to_dbl_fcnvxf()
186 int dst_exponent, srcp1; dbl_to_sgl_fcnvxf() local
209 dst_exponent = 16; /* initialize for normalization */ dbl_to_sgl_fcnvxf()
213 * a value in dst_exponent indicating the bit position, dbl_to_sgl_fcnvxf()
216 Find_ms_one_bit(srcp2,dst_exponent); dbl_to_sgl_fcnvxf()
218 if (dst_exponent >= 0) { dbl_to_sgl_fcnvxf()
219 srcp1 = srcp2 << dst_exponent; dbl_to_sgl_fcnvxf()
230 dst_exponent += 32; dbl_to_sgl_fcnvxf()
235 * a value in dst_exponent indicating the bit position, dbl_to_sgl_fcnvxf()
239 Find_ms_one_bit(srcp1,dst_exponent); dbl_to_sgl_fcnvxf()
241 if (dst_exponent > 0) { dbl_to_sgl_fcnvxf()
242 Variable_shift_double(srcp1,srcp2,(32-dst_exponent), dbl_to_sgl_fcnvxf()
244 srcp2 <<= dst_exponent; dbl_to_sgl_fcnvxf() local
247 * If dst_exponent = 0, we don't need to shift anything. dbl_to_sgl_fcnvxf()
248 * If dst_exponent = -1, src = - 2**63 so we won't need to dbl_to_sgl_fcnvxf()
251 else srcp1 >>= -(dst_exponent); dbl_to_sgl_fcnvxf()
254 Sgl_set_exponent(result, (62+SGL_BIAS) - dst_exponent); dbl_to_sgl_fcnvxf()
291 register int srcp1, dst_exponent; dbl_to_dbl_fcnvxf() local
314 dst_exponent = 16; /* initialize for normalization */ dbl_to_dbl_fcnvxf()
318 * a value in dst_exponent indicating the bit position, dbl_to_dbl_fcnvxf()
321 Find_ms_one_bit(srcp2,dst_exponent); dbl_to_dbl_fcnvxf()
323 if (dst_exponent >= 0) { dbl_to_dbl_fcnvxf()
324 srcp1 = srcp2 << dst_exponent; dbl_to_dbl_fcnvxf()
335 dst_exponent += 32; dbl_to_dbl_fcnvxf()
340 * a value in dst_exponent indicating the bit position, dbl_to_dbl_fcnvxf()
343 Find_ms_one_bit(srcp1,dst_exponent); dbl_to_dbl_fcnvxf()
345 if (dst_exponent > 0) { dbl_to_dbl_fcnvxf()
346 Variable_shift_double(srcp1,srcp2,(32-dst_exponent), dbl_to_dbl_fcnvxf()
348 srcp2 <<= dst_exponent; dbl_to_dbl_fcnvxf() local
351 * If dst_exponent = 0, we don't need to shift anything. dbl_to_dbl_fcnvxf()
352 * If dst_exponent = -1, src = - 2**63 so we won't need to dbl_to_dbl_fcnvxf()
355 else srcp1 >>= -(dst_exponent); dbl_to_dbl_fcnvxf()
359 Dbl_set_exponent(resultp1, (62+DBL_BIAS) - dst_exponent); dbl_to_dbl_fcnvxf()
H A Dfcnvuf.c66 register int dst_exponent; sgl_to_sgl_fcnvuf() local
79 dst_exponent = 16; /* initialize for normalization */ sgl_to_sgl_fcnvuf()
82 * a value in dst_exponent indicating the bit position, sgl_to_sgl_fcnvuf()
85 Find_ms_one_bit(src,dst_exponent); sgl_to_sgl_fcnvuf()
87 src <<= dst_exponent+1; sgl_to_sgl_fcnvuf() local
89 Sgl_set_exponent(result, 30+SGL_BIAS - dst_exponent); sgl_to_sgl_fcnvuf()
124 register int dst_exponent; sgl_to_dbl_fcnvuf() local
138 dst_exponent = 16; /* initialize for normalization */ sgl_to_dbl_fcnvuf()
141 * a value in dst_exponent indicating the bit position, sgl_to_dbl_fcnvuf()
144 Find_ms_one_bit(src,dst_exponent); sgl_to_dbl_fcnvuf()
146 src <<= dst_exponent+1; sgl_to_dbl_fcnvuf() local
149 Dbl_set_exponent(resultp1, (30+DBL_BIAS) - dst_exponent); sgl_to_dbl_fcnvuf()
165 int dst_exponent; dbl_to_sgl_fcnvuf() local
179 dst_exponent = 16; /* initialize for normalization */ dbl_to_sgl_fcnvuf()
183 * a value in dst_exponent indicating the bit position, dbl_to_sgl_fcnvuf()
186 Find_ms_one_bit(srcp2,dst_exponent); dbl_to_sgl_fcnvuf()
188 srcp1 = srcp2 << dst_exponent+1; dbl_to_sgl_fcnvuf()
194 dst_exponent += 32; dbl_to_sgl_fcnvuf()
199 * a value in dst_exponent indicating the bit position, dbl_to_sgl_fcnvuf()
203 Find_ms_one_bit(srcp1,dst_exponent); dbl_to_sgl_fcnvuf()
205 if (dst_exponent >= 0) { dbl_to_sgl_fcnvuf()
206 Variable_shift_double(srcp1,srcp2,(31-dst_exponent), dbl_to_sgl_fcnvuf()
208 srcp2 <<= dst_exponent+1; dbl_to_sgl_fcnvuf() local
212 Sgl_set_exponent(result, (62+SGL_BIAS) - dst_exponent); dbl_to_sgl_fcnvuf()
247 register int dst_exponent; dbl_to_dbl_fcnvuf() local
261 dst_exponent = 16; /* initialize for normalization */ dbl_to_dbl_fcnvuf()
265 * a value in dst_exponent indicating the bit position, dbl_to_dbl_fcnvuf()
268 Find_ms_one_bit(srcp2,dst_exponent); dbl_to_dbl_fcnvuf()
270 srcp1 = srcp2 << dst_exponent+1; dbl_to_dbl_fcnvuf()
276 dst_exponent += 32; dbl_to_dbl_fcnvuf()
281 * a value in dst_exponent indicating the bit position, dbl_to_dbl_fcnvuf()
284 Find_ms_one_bit(srcp1,dst_exponent); dbl_to_dbl_fcnvuf()
286 if (dst_exponent >= 0) { dbl_to_dbl_fcnvuf()
287 Variable_shift_double(srcp1,srcp2,(31-dst_exponent), dbl_to_dbl_fcnvuf()
289 srcp2 <<= dst_exponent+1; dbl_to_dbl_fcnvuf() local
294 Dbl_set_exponent(resultp1, (62+DBL_BIAS) - dst_exponent); dbl_to_dbl_fcnvuf()

Completed in 72 milliseconds