Leser: 25
2011-03-16T22:27:41 lichtkind... es verschiebt die bits in der binärdarstellung des wertes um die rechts angegebenen stellen in die richtung die der pfeil zeigt...
QuoteLogical shifts can be useful as efficient ways of performing multiplication or division of unsigned integers by powers of two. Shifting left by n bits on a signed or unsigned binary number has the effect of multiplying it by 2n. Shifting right by n bits on an unsigned binary number has the effect of dividing it by 2n (rounding towards 0).
Guest MartinRFür was braucht man denn sowas?
my $bm = (1<<($i+1)) - (1<<$j);