gcd_22

Marco Bodrato bodrato at mail.dm.unipi.it
Tue Aug 27 19:25:20 UTC 2019


Il 2019-08-27 21:10 tg at gmplib.org ha scritto:
> Marco Bodrato <bodrato at mail.dm.unipi.it> writes:

>   ... and on some platform mpn_rshift may not support cnt==0.
> 
> That was taken care of in ny last version.

I wrote my message before, and did not realize, before sending it, that 
you sent a new version :-)

> I added a goto, I think that is an OK solution.

It is correct.
For a generic code with variable N, one may prefer a code that chooses 
if a copy or a shorter shift is needed. But this means more code and the 
shift could not be an in-lined fixed size version...

m



More information about the gmp-devel mailing list