A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
11
Task/Bitwise-operations/MAXScript/bitwise-operations.max
Normal file
11
Task/Bitwise-operations/MAXScript/bitwise-operations.max
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fn bitwise a b =
|
||||
(
|
||||
format "a and b: %\n" (bit.and a b)
|
||||
format "a or b: %\n" (bit.or a b)
|
||||
format "a xor b: %\n" (bit.xor a b)
|
||||
format "not a: %\n" (bit.not a)
|
||||
format "Left shift a: %\n" (bit.shift a b)
|
||||
format "Right shift a: %\n" (bit.shift a -b)
|
||||
)
|
||||
|
||||
bitwise 255 170
|
||||
Loading…
Add table
Add a link
Reference in a new issue