Commit 3a6d57a
committed
Fix 2-bit rotation normalization
srem treats both operands as signed. In 2-bit representation
2 is interpretted as -2. Since the rotation amount is 0 or 1
in 2-bit, we can determine by checking if the amount is odd or even1 parent 493ee8c commit 3a6d57a
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19761 | 19761 | | |
19762 | 19762 | | |
19763 | 19763 | | |
| 19764 | + | |
| 19765 | + | |
| 19766 | + | |
| 19767 | + | |
| 19768 | + | |
| 19769 | + | |
19764 | 19770 | | |
19765 | | - | |
19766 | | - | |
19767 | 19771 | | |
19768 | 19772 | | |
19769 | 19773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2497 | 2497 | | |
2498 | 2498 | | |
2499 | 2499 | | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
2500 | 2508 | | |
2501 | 2509 | | |
2502 | 2510 | | |
| |||
0 commit comments