Shr

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

Overview

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;

See also