gmp-6.1.99-20171027/mpz/mul_i.h:105]: (style) Checking if unsigned variable 'small_mult' is less than zero.

Torbjörn Granlund tg at
Mon Oct 30 01:07:20 UTC 2017

David Binderman <dcb314 at> writes:

  I've found a really minor bug. The source code is
    SIZ(prod) = ((sign_product < 0) ^ (small_mult < 0)) ? -size : size;
        MULTIPLICAND_UNSIGNED long int small_mult
  Suggest simplify the code.
What do you think is buggy about the code?

Please encrypt, key id 0xC8601622

More information about the gmp-discuss mailing list