left circular shift

Torbjorn Granlund tg at gmplib.org
Mon Dec 20 19:48:25 CET 2010


Necati Demir <ndemir at demir.web.tr> writes:

  Is there function for left circular shift in libgmp? If not, how can i
  implement?

I'd assume it'd mean to compute x*2^k mod (2^n-1) where n is the word
bit count.  There is no direct function for that, but it should not hard
to program it using the existing function.

-- 
Torbjörn


More information about the gmp-discuss mailing list