paxPascal Bitwise Operators

Language Element Short Description
Bitwise Left Shift Operator (shl) Left shifts the bits of an expression.
Bitwise Right Shift Operator (shr) Right shifts the bits of an expression.

Bitwise Left Shift Operator (shl)

Left shifts the bits of an expression.
result = expression1 shl expression2

Arguments

result
Any variable.
expression1, expression2
Any expressions.
The shl operator looks at the binary representation of the values of two expressions and does a bitwise left shift operation on them. If one or both expressions are Null expressions, result is Null.

Bitwise Right Shift Operator (shr)

Right shifts the bits of an expression.
result = expression1 shr expression2

Arguments

result
Any variable.
expression1, expression2
Any expressions.
The shr operator looks at the binary representation of the values of two expressions and does a bitwise right shift operation on them. If one or both expressions are Null expressions, result is Null.


Copyright © 1999-2006 VIRT Laboratory. All rights reserved.