Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Bitwise-operations/Zkl/bitwise-operations.zkl
Normal file
8
Task/Bitwise-operations/Zkl/bitwise-operations.zkl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(7).bitAnd(1) //-->1
|
||||
(8).bitOr(1) //-->9
|
||||
(7).bitXor(1) //-->6
|
||||
(1).bitNot() : "%,x".fmt(_) //-->ff|ff|ff|ff|ff|ff|ff|fe
|
||||
(7).shiftRight(1) //-->3
|
||||
(7).shiftLeft(1) //-->0xe
|
||||
(-1).toString(16) //-->ffffffffffffffff
|
||||
(-1).shiftRight(1).toString(16) //-->7fffffffffffffff
|
||||
Loading…
Add table
Add a link
Reference in a new issue