diff options
author | chriseth <chris@ethereum.org> | 2017-06-26 15:19:11 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-26 15:19:11 +0800 |
commit | d94a12a34c4c3846a40002a4e3a79c2b1f0b6972 (patch) | |
tree | 765c8f0ef4f1b40b73fb8695958d949e305d944c /libsolidity | |
parent | 0aaa6d876d56e450ce907e5a8b1db6cfd220312f (diff) | |
download | dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.tar dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.tar.gz dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.tar.bz2 dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.tar.lz dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.tar.xz dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.tar.zst dexon-solidity-d94a12a34c4c3846a40002a4e3a79c2b1f0b6972.zip |
Reformat.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index 26eadf9d..4edec155 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -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) |