位运算¶
位运算 节点对 32 位整数值执行位运算。它适用于底层数据操作和逻辑运算。
输入¶
- A
第一个整数输入。供所有运算符使用。
- B
第二个整数输入。仅用于需要两个输入的运算(与、或、亦或)。
- 移位
要移位或旋转的位数。仅用于 移位 和 旋转 运算。
属性¶
- 运算
要执行的位运算:
- 与:
Returns a value where the bits of A and B are both set.
- 或:
Returns a value where the bits of either A or B are set.
- 异或:
Returns a value where only one of A or B has the bit set (XOR).
- 非:
Inverts the bits of A. Equivalent to -A - 1 in decimal.
- 移位:
Shifts the bits of A by the amount specified in Shift. Positive shifts are to the left; negative to the right.
- 旋转:
Rotates the bits of A by the amount specified in Shift. Positive rotates left; negative rotates right.
输出¶
- 数值
位运算的结果。