Re: bit patterns and bitwise operations

2009-03-27 Thread Mike McClain
On Fri, Mar 27, 2009 at 11:20:27AM +, Dermot wrote: > Hi All, > $bits |= 1<< ($countryid - $currentno); ### > What > is this left shift doing? Is that a or complement? > } > else > { > $bits &= 15-

Re: bit patterns and bitwise operations

2009-03-27 Thread John W. Krahn
Dermot wrote: Hi All, Hello, I have been trying to write this email for a day or two but the content keeps shifting as my understanding of the problem develops. I have encountered a bit of code that I am struggling to understand completely. The code is for dealing with database fields that a