Bitwise logic gmpxx.h problems

Torbjorn Granlund tg at swox.com
Thu Jul 24 23:20:11 CEST 2008


Emmanuel Thomé <Emmanuel.Thome at normalesup.org> writes:

  > Do you base this on experiments, or on analysis from reading the code?
  > 
  > There ought to be a reason for the ZZ variant, they are used just for
  > bitwise ops.
  
  perhaps precisely because without the patch you applied, it was wrong to
  use the __GMPZ_ and _GMP_ variants ? The only difference between __GMPZZ_
  and __GMPZ_ is the definition of compound operator with PODs as
  right-hand types (if you follow the macro maze).
  
POD?

  I _think_ that with the provided patch, it is safe to do s/ZZ/Z/ here. Or
  there's some hidden can of worms somewhere that I haven't seen. Can you
  use your cvs tree to track back these lines to their author ?
  
As far as I can tell, these lines come from Gerardo's original version.

-- 
Torbjörn


More information about the gmp-bugs mailing list