Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -2,18 +2,18 @@ import extensions;
|
|||
|
||||
extension testOp
|
||||
{
|
||||
bitwiseTest(y)
|
||||
{
|
||||
console.printLine(self," and ",y," = ",self & y);
|
||||
console.printLine(self," or ",y," = ",self | y);
|
||||
console.printLine(self," xor ",y," = ",self ^ y);
|
||||
console.printLine("not ",self," = ",self.BInverted);
|
||||
console.printLine(self," shr ",y," = ",self.shiftRight(y));
|
||||
console.printLine(self," shl ",y," = ",self.shiftLeft(y));
|
||||
}
|
||||
bitwiseTest(y)
|
||||
{
|
||||
Console.printLine(self," and ",y," = ",self.band(y));
|
||||
Console.printLine(self," or ",y," = ",self.bor(y));
|
||||
Console.printLine(self," xor ",y," = ",self.bxor(y));
|
||||
Console.printLine("not ",self," = ",self.BInverted);
|
||||
Console.printLine(self," shr ",y," = ",self.shiftRight(y));
|
||||
Console.printLine(self," shl ",y," = ",self.shiftLeft(y));
|
||||
}
|
||||
}
|
||||
|
||||
public program()
|
||||
{
|
||||
console.loadLineTo(new Integer()).bitwiseTest(console.loadLineTo(new Integer()))
|
||||
Console.loadLineTo(new Integer()).bitwiseTest(Console.loadLineTo(new Integer()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue