Small operands gcd improvements

Marco Bodrato bodrato at mail.dm.unipi.it
Tue Aug 13 02:15:13 UTC 2019


Ciao,

Il Lun, 12 Agosto 2019 6:52 pm, Torbjörn Granlund ha scritto:
> I fixed a variable misspelling and defined the needed macro.  I also
> modified the return type's declaration.  The code fails in most cases,
> but occasionally gets things right.

May I suggest to write:

u0 = (u0 >> c) | (u1 << (GMP_LIMB_BITS - c));

instead of

u0 = (u0 >> c) || (u1 << (GMP_LIMB_BITS - c));

?

Ĝis,
m

-- 
http://bodrato.it/papers/



More information about the gmp-devel mailing list