Language Element | Short Description |
---|---|
Bitwise AND Operator (&) | Performs a bitwise AND on two expressions. |
Bitwise Left Shift Operator (<<) | Left shifts the bits of an expression. |
Bitwise NOT Operator (~) | Performs a bitwise NOT (negation) on an expression. |
Bitwise OR Operator (|) | Performs a bitwise OR on two expressions. |
Bitwise Right Shift Operator (>>) | Right shifts the bits of an expression. |
Bitwise Unsigned Right Shift Operator (>>>) | Right shifts the bits of an expression, without maintaining sign. |
Bitwise XOR Operator (^) | Performs a bitwise exclusive OR on two expressions. |
Performs a bitwise AND on two expressions.result = expression1 & expression2Arguments
resultAny variable.expression1, expression2The & operator looks at the binary representation of the values of two expressions and does a bitwise AND operation on them. If one or both expressions are Null expressions, result is Null.Any expressions.
Left shifts the bits of an expression.result = expression1 << expression2Arguments
resultAny variable.expression1, expression2The << 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.Any expressions.
Performs a bitwise NOT (negation) on an expression.result = ~ expressionArguments
resultAny variable.expressionThe ~ operator looks at the binary representation of the values of expression and does a bitwise not operation on it. If one or both expressions are Null expressions, result is Null.Any expressions.
Performs a bitwise OR on two expressions.result = expression1 | expression2Arguments
resultAny variable.expression1, expression2The | operator looks at the binary representation of the values of two expressions and does a bitwise AND operation on them. If one or both expressions are Null expressions, result is Null.Any expressions.
Right shifts the bits of an expression.result = expression1 >> expression2Arguments
resultAny variable.expression1, expression2The >> 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.Any expressions.
Right shifts the bits of an expression, without maintaining sign.result = expression1 >>> expression2Arguments
expression1, expression2The >>> operator looks at the binary representation of the values of two expressions and does a bitwise right shift operation on them, without maintaining sign. If one or both expressions are Null expressions, result is Null.Any expressions.
Performs a bitwise exclusive OR on two expressions.result = expression1 ^ expression2Arguments
resultAny variable.expression1, expression2The ^ operator looks at the binary representation of the values of two expressions and does a bitwise exclusive OR operation on them. If one or both expressions are Null expressions, result is Null.Any expressions.