| 1622 | } |
| 1623 | |
| 1624 | void CompilerUtils::rightShiftNumberOnStack(unsigned _bits) |
| 1625 | { |
| 1626 | solAssert(_bits < 256); |
| 1627 | // NOTE: If we add signed right shift, SAR rounds differently than SDIV |
| 1628 | if (m_context.evmVersion().hasBitwiseShifting()) |
| 1629 | m_context << _bits << Instruction::SHR; |
| 1630 | else |
| 1631 | m_context << (u256(1) << _bits) << Instruction::SWAP1 << Instruction::DIV; |
| 1632 | } |
| 1633 | |
| 1634 | unsigned CompilerUtils::prepareMemoryStore(Type const& _type, bool _padToWords, bool _cleanup) |
| 1635 | { |
no test coverage detected