commit | cfff041514b432f245907d0d1e0c10948759ffc9 | [log] [tgz] |
---|---|---|
author | Mythri Alle <mythria@google.com> | Fri Apr 05 15:45:27 2024 +0000 |
committer | Mythri Alle <mythria@google.com> | Mon Apr 08 11:01:42 2024 +0000 |
tree | 1517ab378ca25ed84db3c71ba6841cb849ecf9ad | |
parent | 367cf319d5c9100b7d62ec7f083ad564b8711675 [diff] |
Update the code to sign extend the result after decoding from leb128 We used to use a workaround to sign extend since right shift had undefined behaviour in older versions of c++. Starting c++ 20 the behaviour is well defined and should be safe to use it for sign extensions. This makes the code more readable and generates one less assembly instruction. Bug: 259258187 Test: art/test.py Change-Id: Icc3e6296e9320c3ddd9ec1096484f8c659d90772