You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libscript/src/bitwise.mlc
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ public foreign handler MCBitwiseEvalBitwiseOr(in Left as LCInt, in Right as LCIn
27
27
public foreign handler MCBitwiseEvalBitwiseNot(in Operand as LCInt, out Value as LCInt) as undefined binds to "<builtin>"
28
28
public foreign handler MCBitwiseEvalBitwiseXor(in Left as LCInt, in Right as LCInt, out Value as LCInt) as undefined binds to "<builtin>"
29
29
30
-
public foreign handler MCBitwiseEvalBitwiseShift(in Target as LCInt, in IsRight as CBool, in Shift as LCInt, out Value as LCInt) as undefined binds to "<builtin>"
30
+
public foreign handler MCBitwiseEvalBitwiseShift(in Target as LCInt, in IsRight as CBool, in Shift as LCUInt, out Value as LCInt) as undefined binds to "<builtin>"
31
31
32
32
--
33
33
@@ -140,16 +140,16 @@ Returns: The result of bit-shifting <Operand> by <Shift> places.
140
140
141
141
Example:
142
142
variable tVar
143
-
put 7 shifted by 2 bitwise into tVar -- tVar contains 28
143
+
put 7 shifted left by 2 bitwise into tVar -- tVar contains 28
144
144
145
145
Description:
146
-
Shifts the bits of <Operand> left or right. If neither direction is specified, then shifts left. Shifting the bits of <Operand> left by x is equivalent to multiplying by 2^x. Shifting by a negative value is equivalent to shifting by its absolute value in the opposite direction.
146
+
Shifts the bits of <Operand> left or right. Shifting the bits of <Operand> left by x is equivalent to multiplying by 2^x.
147
147
148
148
Tags: Bitwise operations
149
149
*/
150
150
151
151
syntax BitwiseShift is postfix operator with precedence 1
0 commit comments