Bitwise logic gmpxx.h problems

Emmanuel Thomé Emmanuel.Thome at normalesup.org
Fri Jul 25 00:30:14 CEST 2008


On Thu, Jul 24, 2008 at 11:20:11PM +0200, Torbjorn Granlund wrote:
> 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?

plain old datatype.

>   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.

so maybe a word of confirmation from him would be wise ?

To me, it looks ok to substitute.

E.


More information about the gmp-bugs mailing list