in reply to Re^3: Shift Operators And Bitwise Operators
in thread Shift Operators And Bitwise Operators
does this seem all there is to it??? p.s. I don't know anything about carpets by the way except that they are spread or pinned on to a wall#working in octets of bits. 01-shift $! bits to the right. #zeroing on target 02-spread &ing carpet under the target #2**(No.of bits) #carpet size is (1,4,8,16,32) that covers 1,2,3,4..etc bits #from the second bit the relation is (2**2, 2**3, #2**4...2**32) i.e. +2**(bit position). 03-&ing makes us extract the bits we want #(shifted bits)*(appropriate carpet size)=(C or SSs or EEs)
|
|---|