Shr

From Lazarus wiki
Revision as of 12:13, 9 July 2013 by Olaf (talk | contribs)
Jump to navigationJump to search

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