MCPcopy Create free account
hub / github.com/argotorg/solidity / leftShiftNumberOnStack

Method leftShiftNumberOnStack

libsolidity/codegen/CompilerUtils.cpp:1615–1622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1613}
1614
1615void 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
1624void CompilerUtils::rightShiftNumberOnStack(unsigned _bits)
1625{

Callers 2

retrieveValueMethod · 0.80
visitMethod · 0.80

Calls 2

hasBitwiseShiftingMethod · 0.80
evmVersionMethod · 0.45

Tested by

no test coverage detected