Difference between revisions of "Shr"

From Lazarus wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 +
{{shr}}
 +
<br>
 +
<br>
 
'''Sh'''ift '''r'''ight (shr) performs a right bit-shift operation (opposite than [[Shl|shl]]).
 
'''Sh'''ift '''r'''ight (shr) performs a right bit-shift operation (opposite than [[Shl|shl]]).
 
  
  

Revision as of 12:13, 9 July 2013

Deutsch (de) English (en) français (fr) русский (ru)



Shift right (shr) performs a right bit-shift operation (opposite than shl).


Is a bit set

function isBitSet(AValue, ABitNumber:integer):boolean;
begin
   result:=odd(AValue shr ABitNumber);
end;

Read more