Lines Matching defs:vs

54 static void vfp_single_normalise_denormal(struct vfp_single *vs)
56 int bits = 31 - fls(vs->significand);
58 vfp_single_dump("normalise_denormal: in", vs);
61 vs->exponent -= bits - 1;
62 vs->significand <<= bits;
65 vfp_single_dump("normalise_denormal: out", vs);
70 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions)
72 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char *func)
78 vfp_single_dump("pack: in", vs);
83 if (vs->exponent == 255 && (vs->significand == 0 || exceptions))
89 if (vs->significand == 0) {
90 vs->exponent = 0;
94 exponent = vs->exponent;
95 significand = vs->significand;
109 vs->exponent = exponent;
110 vs->significand = significand;
111 vfp_single_dump("pack: normalised", vs);
122 vs->exponent = exponent;
123 vs->significand = significand;
124 vfp_single_dump("pack: tiny number", vs);
142 } else if ((rmode == FPSCR_ROUND_PLUSINF) ^ (vs->sign != 0))
155 vs->exponent = exponent;
156 vs->significand = significand;
157 vfp_single_dump("pack: overflow", vs);
179 vs->exponent = 253;
180 vs->significand = 0x7fffffff;
182 vs->exponent = 255; /* infinity */
183 vs->significand = 0;
192 vs->exponent = exponent;
193 vs->significand = significand >> 1;
197 vfp_single_dump("pack: final", vs);
199 s32 d = vfp_single_pack(vs);
527 struct vfp_single vs;
529 vs.sign = 0;
530 vs.exponent = 127 + 31 - 1;
531 vs.significand = (u32)m;
533 return vfp_single_normaliseround(sd, &vs, fpscr, 0, "fuito");
538 struct vfp_single vs;
540 vs.sign = (m & 0x80000000) >> 16;
541 vs.exponent = 127 + 31 - 1;
542 vs.significand = vs.sign ? -m : m;
544 return vfp_single_normaliseround(sd, &vs, fpscr, 0, "fsito");