mpz_div_2exp function

Niels Möller nisse at lysator.liu.se
Mon Jun 24 19:51:44 CEST 2013


"Gutmann, A" <A.Gutmann at analog.com> writes:

> Function: void mpz_div_2exp (MP_INT *quotient, MP_INT *dividend,
> unsigned long int exponent_of_2)

I find no such function in the GMP manual. Closest are mpz_cdiv_q_2exp,
mpz_fdiv_q_2exp, mpz_tdiv_q_2exp, which do rounding in different ways.
Which one are you having a problem with?

And which version of GMP are you using?

Regards,
/Niels Möller

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list