Skip to content

Commit

Permalink
Use floor and not udiv/sdiv
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jul 3, 2017
1 parent d4f5382 commit e5ca919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EIPS/eip-145.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Notes:
The `SHR` instruction (logical shift right) pops 2 values from the stack, `arg1` and `arg2`, and pushes on the stack the first popped value `arg1` shifted to the right by the number of bits in the second popped value `arg2` with zero fill. The result is equal to

```
arg1 udiv 2^arg2
floor(arg1 / 2^arg2)
```

Notes:
Expand All @@ -54,7 +54,7 @@ Notes:
The `SAR` instruction (arithmetic shift right) pops 2 values from the stack, `arg1` and `arg2`, and pushes on the stack the first popped value `arg1` shifted to the right by the number of bits in the second popped value `arg2` with sign extension. The result is equal to

```
arg1 sdiv 2^arg2
floor(arg1 / 2^arg2)
```

Notes:
Expand Down

0 comments on commit e5ca919

Please sign in to comment.