@dave
plz run gene's code for input 0xAD...or send me some link of bitwise
programing which involve simultaneous many opearation... like above...
i am always confused with bitwise programing...
On Sun, Nov 21, 2010 at 11:11 PM, Dave wrote:
> @Coolfrog$: Don't forget the bitwise logical produc
x=((x>>3)&(0x11)|(a<<3)& 0x88 |(a>>1)& 0x44 | (a<<1) && 0x22)
On Sun, Nov 21, 2010 at 11:11 PM, Dave wrote:
> @Coolfrog$: Don't forget the bitwise logical products. What is the bit
> patterns in those hexadecimal constants? Work out the whole example
> and you will see how it works. -- Dave
>
>
@gene
plz explain .. what is going on... by taking example. i am unable to run
a test case
1. x=0xAD (1010 1101)
2. x<<1 ===>01011010
|
x>>1 >01010110
x =0100
how we will get
answer as ( 0101 1011).??
On Sun, Nov 21, 2010 at 9:59 AM, Gene