-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low gas stipend precompile calls #1754
Conversation
|
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More parametric and if necessary pre-populate memory to simplify computations.
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
arithmetization/src/test/java/net/consensys/linea/zktracer/precompiles/PrecompileUtils.java
Outdated
Show resolved
Hide resolved
arithmetization/src/test/java/net/consensys/linea/zktracer/precompiles/PrecompileUtils.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Show resolved
Hide resolved
arithmetization/src/main/java/net/consensys/linea/zktracer/module/oob/OobOperation.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/net/consensys/linea/zktracer/precompiles/LowGasStipendPrecompileCallTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several changes are in place. Otherwise looks good to me.
} else if (ebs > 32 && leadingBytesOfExponent.signum() != 0) { | ||
return 8 * (ebs - 32) + log2(leadingBytesOfExponent, RoundingMode.FLOOR); | ||
} else { | ||
return 8 * (ebs - 32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-reading this makes me wonder whether we have tests where we deliberately set the leadingBytesOfExponent
to zero ...
…nsensys/linea-tracer into 1730-low-gas-stipend-precompile-calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.