Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add parentheses in SMOD definition #191

Merged
merged 1 commit into from
Feb 22, 2017
Merged

Conversation

pirapira
Copy link
Member

@pirapira pirapira commented Oct 5, 2016

This solves #190. The other way of putting parentheses
did not make sense becasue sign(x) * |x| can immediately
be optimized into x.

Also, I checked one EVM implementation's behavior

evm --debug --code "60601960401907"

and saw SMOD returning a negative-looking number.

@pirapira pirapira changed the title Add a parentheses in SMOD definition Add parentheses in SMOD definition Feb 15, 2017
This solves ethereum#190.  The other way of putting parentheses
did not make sense becasue `sign(x) * |x|` can immediately
be optimized into `x`.

Also, I checked one EVM implementation's behavior
```
evm --debug --code "60601960401907"
```
and saw SMOD returning a negative-looking number.
@gavofyork gavofyork merged commit 2342a09 into ethereum:master Feb 22, 2017
@pirapira pirapira deleted the SMODparen branch March 28, 2017 09:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants