Likely GMP bug

Niels Möller nisse at lysator.liu.se
Sun May 27 20:11:12 UTC 2018


"Marco Bodrato" <bodrato at mail.dm.unipi.it> writes:

> Il Sab, 26 Maggio 2018 11:12 pm, Niels Möller ha scritto:
>> tg at gmplib.org (Torbjörn Granlund) writes:
>>
>>> I think we should rewrite relevant parts and avoid these constructs.
>
>> It would help clarity if we could reduce number of variants. If we
>> delete the unused USE_ZEROTAB code and the unused (?) GCD_1_METHOD == 1
>> versions, it would be easier to reorganize loop entry.
>
> Or we can simply "strip U maybe" before entering the loop.
>
> I suggest:

Looks reasonable, but I'd prefer to *also* delete the unused code. It's
not so pretty to have a USE_ZEROTAB in the code but nevertheless have an
unconditional use of count_trailing_zeros.

Regards,
/Niels

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


More information about the gmp-bugs mailing list