Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Bitwise-operations/SAS/bitwise-operations.sas
Normal file
12
Task/Bitwise-operations/SAS/bitwise-operations.sas
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* rotations are not available, but are easy to implement with the other bitwise operators */
|
||||
data _null_;
|
||||
a=105;
|
||||
b=91;
|
||||
c=bxor(a,b);
|
||||
d=band(a,b);
|
||||
e=bor(a,b);
|
||||
f=bnot(a); /* on 32 bits */
|
||||
g=blshift(a,1);
|
||||
h=brshift(a,1);
|
||||
put _all_;
|
||||
run;
|
||||
Loading…
Add table
Add a link
Reference in a new issue