Rshift

GabrieleMartino martino.gabriele at fastwebnet.it
Sat Oct 29 15:49:34 CEST 2005


Hi,

thanks for your answer.
I have pdf manual but im not able to use this function.

I have a mpz_t variable and i want to shift it.

mpz_t e;

mpz_init_set_str(e,"65536",10);

The prototype of mpn_rshift is 

mp_limb_t mpn_rshift (mp limb t *rp, const mp limb t *sp, mp size t n,
unsigned int count)

How can i get the parameters "mp_limb_t *rp", "const mp_limb_t *sp", "mp_size_t
n" ???

Then, how can I obtain the shifted value in mpz_t notation??

Thanks.
Gabriele Martino




More information about the gmp-discuss mailing list