mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reformat.
This commit is contained in:
parent
0aaa6d876d
commit
d94a12a34c
@ -322,12 +322,15 @@ void CompilerUtils::memoryCopy()
|
||||
m_context.appendInlineAssembly(R"(
|
||||
{
|
||||
// copy 32 bytes at once
|
||||
for {} iszero(lt(len, 32)) {
|
||||
dst := add(dst, 32)
|
||||
src := add(src, 32)
|
||||
len := sub(len, 32)
|
||||
}
|
||||
{ mstore(dst, mload(src)) }
|
||||
for
|
||||
{}
|
||||
iszero(lt(len, 32))
|
||||
{
|
||||
dst := add(dst, 32)
|
||||
src := add(src, 32)
|
||||
len := sub(len, 32)
|
||||
}
|
||||
{ mstore(dst, mload(src)) }
|
||||
|
||||
// copy the remainder (0 < len < 32)
|
||||
let mask := sub(exp(256, sub(32, len)), 1)
|
||||
|
Loading…
Reference in New Issue
Block a user