Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Bitwise-operations/Inform-6/bitwise-operations.inf
Normal file
15
Task/Bitwise-operations/Inform-6/bitwise-operations.inf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[ bitwise a b temp;
|
||||
print "a and b: ", a & b, "^";
|
||||
print "a or b: ", a | b, "^";
|
||||
print "not a: ", ~a, "^";
|
||||
@art_shift a b -> temp;
|
||||
print "a << b (arithmetic): ", temp, "^";
|
||||
temp = -b;
|
||||
@art_shift a temp -> temp;
|
||||
print "a >> b (arithmetic): ", temp, "^";
|
||||
@log_shift a b -> temp;
|
||||
print "a << b (logical): ", temp, "^";
|
||||
temp = -b;
|
||||
@log_shift a temp -> temp;
|
||||
print "a >> b (logical): ", temp, "^";
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue