Lines Matching refs:exp
170 int exp;
185 exp = mpz_get_ui (t) % (2*MAXEXP) - MAXEXP;
187 d = my_ldexp (mpz_get_d (a), exp);
189 /* Check that n/d = a * 2^exp, or
190 d*a 2^{exp} = n */
192 if (exp > 0)
193 mpz_mul_2exp (t, t, exp);
196 if (!mpz_divisible_2exp_p (t, -exp))
198 mpz_div_2exp (t, t, -exp);
238 long exp, l;
246 exp = data[i];
249 if (exp >= 0)
250 mpq_mul_2exp (q, q, exp);
252 mpq_div_2exp (q, q, -exp);
255 for (l = 0; l < exp; l++)
257 for (l = 0; l > exp; l--)
272 printf ("mpq_get_d wrong on %s2**%ld\n", neg ? "-" : "", exp);