Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Bitwise-operations/J/bitwise-operations-1.j
Normal file
9
Task/Bitwise-operations/J/bitwise-operations-1.j
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
bAND=: 17 b. NB. 16+#.0 0 0 1
|
||||
bOR=: 23 b. NB. 16+#.0 1 1 1
|
||||
bXOR=: 22 b. NB. 16+#.0 1 1 0
|
||||
b1NOT=: 28 b. NB. 16+#.1 1 0 0
|
||||
bLshift=: 33 b.~ NB. see http://www.jsoftware.com/help/release/bdot.htm
|
||||
bRshift=: 33 b.~ -
|
||||
bRAshift=: 34 b.~ -
|
||||
bLrot=: 32 b.~
|
||||
bRrot=: 32 b.~ -
|
||||
4
Task/Bitwise-operations/J/bitwise-operations-2.j
Normal file
4
Task/Bitwise-operations/J/bitwise-operations-2.j
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
bitwise=: 1 :0
|
||||
:
|
||||
smoutput (((":x),"1' ',.(>u),.' '),"1":y),"1' => ',"1'.X'{~#:x u`:0 y
|
||||
)
|
||||
10
Task/Bitwise-operations/J/bitwise-operations-3.j
Normal file
10
Task/Bitwise-operations/J/bitwise-operations-3.j
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
254 bAND`bOR`bXOR`b1NOT`bLshift`bRshift`bRAshift`bLrot`bRrot bitwise 3
|
||||
254 bAND 3 => ............................X.
|
||||
254 bOR 3 => ......................XXXXXXXX
|
||||
254 bXOR 3 => ......................XXXXXX.X
|
||||
254 b1NOT 3 => XXXXXXXXXXXXXXXXXXXXXX.......X
|
||||
254 bLshift 3 => ...................XXXXXXX....
|
||||
254 bRshift 3 => .........................XXXXX
|
||||
254 bRAshift 3 => .........................XXXXX
|
||||
254 bLrot 3 => ...................XXXXXXX....
|
||||
254 bRrot 3 => .........................XXXXX
|
||||
2
Task/Bitwise-operations/J/bitwise-operations-4.j
Normal file
2
Task/Bitwise-operations/J/bitwise-operations-4.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bXOR/ 3333 5555 7777 9999
|
||||
8664
|
||||
Loading…
Add table
Add a link
Reference in a new issue