Round up allocations to multiples of 32.

This commit is contained in:
chriseth
2021-01-14 21:52:17 +00:00
committed by Alex Beregszaszi
parent 31ee06d945
commit db4b39e09e
20 changed files with 86 additions and 58 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ contract C {
}
// ----
// creation:
// codeDepositCost: 1174000
// codeDepositCost: 1175600
// executionCost: 1221
// totalCost: 1175221
// totalCost: 1176821
// external:
// a(): 1130
// b(uint256): infinite
@@ -17,9 +17,9 @@ contract C {
// optimize-yul: true
// ----
// creation:
// codeDepositCost: 587400
// codeDepositCost: 588800
// executionCost: 619
// totalCost: 588019
// totalCost: 589419
// external:
// a(): 1029
// b(uint256): 2084
@@ -15,5 +15,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// ----
// diff() -> 0 # This checks that the allocation function pads to multiples of 32 bytes #