| 1613 | } |
| 1614 | |
| 1615 | void CompilerUtils::leftShiftNumberOnStack(unsigned _bits) |
| 1616 | { |
| 1617 | solAssert(_bits < 256); |
| 1618 | if (m_context.evmVersion().hasBitwiseShifting()) |
| 1619 | m_context << _bits << Instruction::SHL; |
| 1620 | else |
| 1621 | m_context << (u256(1) << _bits) << Instruction::MUL; |
| 1622 | } |
| 1623 | |
| 1624 | void CompilerUtils::rightShiftNumberOnStack(unsigned _bits) |
| 1625 | { |
no test coverage detected