Lines Matching full:exponent
43 .exponent = 255,
50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%08x\n", in vfp_single_dump()
51 str, s->sign != 0, s->exponent, s->significand); in vfp_single_dump()
61 vs->exponent -= bits - 1; in vfp_single_normalise_denormal()
76 int exponent, shift, underflow; in __vfp_single_normaliseround() local
83 if (vs->exponent == 255 && (vs->significand == 0 || exceptions)) in __vfp_single_normaliseround()
90 vs->exponent = 0; in __vfp_single_normaliseround()
94 exponent = vs->exponent; in __vfp_single_normaliseround()
104 exponent -= shift; in __vfp_single_normaliseround()
109 vs->exponent = exponent; in __vfp_single_normaliseround()
117 underflow = exponent < 0; in __vfp_single_normaliseround()
119 significand = vfp_shiftright32jamming(significand, -exponent); in __vfp_single_normaliseround()
120 exponent = 0; in __vfp_single_normaliseround()
122 vs->exponent = exponent; in __vfp_single_normaliseround()
151 exponent += 1; in __vfp_single_normaliseround()
155 vs->exponent = exponent; in __vfp_single_normaliseround()
176 if (exponent >= 254) { in __vfp_single_normaliseround()
179 vs->exponent = 253; in __vfp_single_normaliseround()
182 vs->exponent = 255; /* infinity */ in __vfp_single_normaliseround()
187 exponent = 0; in __vfp_single_normaliseround()
188 if (exponent || significand > 0x80000000) in __vfp_single_normaliseround()
192 vs->exponent = exponent; in __vfp_single_normaliseround()
287 u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand) in vfp_estimate_sqrt_significand() argument
298 if (exponent & 1) { in vfp_estimate_sqrt_significand()
365 vsd.exponent = ((vsm.exponent - 127) >> 1) + 127; in vfp_single_fsqrt()
366 vsd.significand = vfp_estimate_sqrt_significand(vsm.exponent, vsm.significand) + 2; in vfp_single_fsqrt()
379 vsm.significand <<= !(vsm.exponent & 1); in vfp_single_fsqrt()
506 * If we have an infinity or NaN, the exponent must be 2047. in vfp_single_fcvtd()
509 vdd.exponent = 2047; in vfp_single_fcvtd()
514 vdd.exponent = 0; in vfp_single_fcvtd()
516 vdd.exponent = vsm.exponent + (1023 - 127); in vfp_single_fcvtd()
530 vs.exponent = 127 + 31 - 1; in vfp_single_fuito()
541 vs.exponent = 127 + 31 - 1; in vfp_single_fsito()
567 if (vsm.exponent >= 127 + 32) { in vfp_single_ftoui()
570 } else if (vsm.exponent >= 127 - 1) { in vfp_single_ftoui()
571 int shift = 127 + 31 - vsm.exponent; in vfp_single_ftoui()
604 if (vsm.exponent | vsm.significand) { in vfp_single_ftoui()
647 } else if (vsm.exponent >= 127 + 32) { in vfp_single_ftosi()
655 } else if (vsm.exponent >= 127 - 1) { in vfp_single_ftosi()
656 int shift = 127 + 31 - vsm.exponent; in vfp_single_ftosi()
685 if (vsm.exponent | vsm.significand) { in vfp_single_ftosi()
788 if (vsn->exponent < vsm->exponent) { in vfp_single_add()
798 if (vsn->exponent == 255) in vfp_single_add()
811 exp_diff = vsn->exponent - vsm->exponent; in vfp_single_add()
845 if (vsn->exponent < vsm->exponent) { in vfp_single_multiply()
857 if (vsn->exponent == 255) { in vfp_single_multiply()
858 if (vsn->significand || (vsm->exponent == 255 && vsm->significand)) in vfp_single_multiply()
860 if ((vsm->exponent | vsm->significand) == 0) { in vfp_single_multiply()
864 vsd->exponent = vsn->exponent; in vfp_single_multiply()
873 if ((vsm->exponent | vsm->significand) == 0) { in vfp_single_multiply()
874 vsd->exponent = 0; in vfp_single_multiply()
880 * We add 2 to the destination exponent for the same reason as in vfp_single_multiply()
884 vsd->exponent = vsn->exponent + vsm->exponent - 127 + 2; in vfp_single_multiply()
904 if (vsn.exponent == 0 && vsn.significand) in vfp_single_multiply_accumulate()
908 if (vsm.exponent == 0 && vsm.significand) in vfp_single_multiply_accumulate()
918 if (vsn.exponent == 0 && vsn.significand) in vfp_single_multiply_accumulate()
976 if (vsn.exponent == 0 && vsn.significand) in vfp_single_fmul()
980 if (vsm.exponent == 0 && vsm.significand) in vfp_single_fmul()
999 if (vsn.exponent == 0 && vsn.significand) in vfp_single_fnmul()
1003 if (vsm.exponent == 0 && vsm.significand) in vfp_single_fnmul()
1026 if (vsn.exponent == 0 && vsn.significand) in vfp_single_fadd()
1030 if (vsm.exponent == 0 && vsm.significand) in vfp_single_fadd()
1114 vsd.exponent = vsn.exponent - vsm.exponent + 127 - 1; in vfp_single_fdiv()
1118 vsd.exponent++; in vfp_single_fdiv()
1141 vsd.exponent = 0; in vfp_single_fdiv()
1148 vsd.exponent = 255; in vfp_single_fdiv()