Shr

From Lazarus wiki
Revision as of 08:24, 6 May 2014 by BigChimp (talk | contribs)
Jump to navigationJump to search

Overview

Template:shr

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;

See also