Difference between revisions of "Shr"

From Lazarus wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 +
== Overview ==
 
{{shr}}
 
{{shr}}
 
<br>
 
<br>
Line 14: Line 15:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Read more ===
+
== See also ==
 
* [[Odd]]
 
* [[Odd]]
 
* [[Boolean]]
 
* [[Boolean]]

Revision as of 09:24, 6 May 2014

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