diff options
| author | 2024-04-05 15:45:27 +0000 | |
|---|---|---|
| committer | 2024-04-08 11:01:42 +0000 | |
| commit | cfff041514b432f245907d0d1e0c10948759ffc9 (patch) | |
| tree | 1517ab378ca25ed84db3c71ba6841cb849ecf9ad /test/ProfileTestMultiDex | |
| 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
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions