value range propagation for _bitwise_ OR

bearophile bearophileHUGS at lycos.com
Sat Apr 10 11:55:36 PDT 2010


Adam D. Ruppe:

> My feeling is to go ahead and cast to unsigned, then do the calculation. For
> me at least, when doing bitwise ops, I assume it is unsigned anyway.

Time ago I have even suggested to disallow bitwise ops when one or both operands are signed...

Bye,
bearophile



More information about the Digitalmars-d mailing list