Lines Matching refs:exp
193 int sign, exp;
202 * If exp >= 2^32, overflow. Otherwise shift value right
211 if ((exp = fp->fp_exp) >= 32)
213 /* NB: the following includes exp < 0 cases */
214 if (fpu_shr(fp, FP_NMANT - 1 - FP_NG - exp) != 0) {
243 int exp;
256 exp = SNG_EXP_INFNAN;
285 if ((exp = fp->fp_exp + SNG_EXP_BIAS) <= 0) { /* subnormal */
287 /* -NG for g,r; -SNG_FRACBITS-exp for fraction */
288 (void) fpu_shr(fp, FP_NMANT - FP_NG - SNG_FRACBITS - exp);
304 exp++;
305 if (exp >= SNG_EXP_INFNAN) {
314 return (sign | SNG_EXP(exp) | (fp->fp_mant[2] & SNG_MASK));
327 int exp;
334 exp = DBL_EXP_INFNAN;
347 if ((exp = fp->fp_exp + DBL_EXP_BIAS) <= 0) {
349 (void) fpu_shr(fp, FP_NMANT - FP_NG - DBL_FRACBITS - exp);
358 exp = 0;
363 exp++;
364 if (exp >= DBL_EXP_INFNAN) {
375 return (sign | DBL_EXP(exp) | (fp->fp_mant[1] & DBL_MASK));
389 int exp;
402 exp = EXT_EXP_INFNAN;
415 if ((exp = fp->fp_exp + EXT_EXP_BIAS) < 0) {
418 * I'm not sure about this <=... exp==0 doesn't mean
421 (void) fpu_shr(fp, FP_NMANT - FP_NG - EXT_FRACBITS - exp);
430 exp = 0;
437 exp++;
440 if (exp >= EXT_EXP_INFNAN) {
452 return (sign | EXT_EXP(exp));