Lines Matching refs:exp
1 /* mpfr_scale2 -- multiply a double float by 2^exp
29 /* multiplies 1/2 <= d <= 1 by 2^exp */
31 mpfr_scale2 (double d, int exp)
40 exp ++;
46 MPFR_ASSERTD (-1073 <= exp && exp <= 1025);
49 if (MPFR_UNLIKELY (exp < -1021)) /* subnormal case */
51 x.s.exp += exp + 52;
56 x.s.exp += exp;
68 exp--;
72 if (exp < 0)
75 exp = -exp;
81 while (exp != 0)
83 if ((exp & 1) != 0)
85 exp >>= 1;