mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
test stage
This commit is contained in:
@@ -100,16 +100,7 @@ string YulUtilFunctions::copyToMemoryFunction(bool _fromCalldata)
|
||||
{
|
||||
return Whiskers(R"(
|
||||
function <functionName>(src, dst, length) {
|
||||
let i := 0
|
||||
for { } lt(i, length) { i := add(i, 32) }
|
||||
{
|
||||
mstore(add(dst, i), mload(add(src, i)))
|
||||
}
|
||||
if gt(i, length)
|
||||
{
|
||||
// clear end
|
||||
mstore(add(dst, length), 0)
|
||||
}
|
||||
pop(staticcall(gas(), 4, src, length, dst, length))
|
||||
}
|
||||
)")
|
||||
("functionName", functionName)
|
||||
|
||||
Reference in New Issue
Block a user