mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
568 B
Solidity
20 lines
568 B
Solidity
|
contract C {
|
||
|
function f(int256 a, int256 b) public returns (int256) {
|
||
|
return a >> b;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// f(int256,int256): -4266, 0 -> -4266
|
||
|
// f(int256,int256): -4266, 1 -> -2133
|
||
|
// f(int256,int256): -4266, 4 -> -267
|
||
|
// f(int256,int256): -4266, 8 -> -17
|
||
|
// f(int256,int256): -4266, 16 -> -1
|
||
|
// f(int256,int256): -4266, 17 -> -1
|
||
|
// f(int256,int256): -4267, 0 -> -4267
|
||
|
// f(int256,int256): -4267, 1 -> -2134
|
||
|
// f(int256,int256): -4267, 4 -> -267
|
||
|
// f(int256,int256): -4267, 8 -> -17
|
||
|
// f(int256,int256): -4267, 16 -> -1
|
||
|
// f(int256,int256): -4267, 17 -> -1
|