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 gmplib.org
Mon Oct 30 01:07:20 UTC 2017


David Binderman <dcb314 at hotmail.com> writes:

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

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list