Libraryless. Click here for Pure Java version (31L/1K).
1 | static int compressed30BitUint_lengthForValue(int i) { |
2 | if (i < 0x40) ret 1; |
3 | if (i < 0x4000) ret 2; |
4 | if (i < 0x400000) ret 3; |
5 | ret 4; |
6 | } |
Began life as a copy of #1029534
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029535 |
Snippet name: | compressed30BitUint_lengthForValue |
Eternal ID of this version: | #1029535/3 |
Text MD5: | 9a18fc803b76239135dc6d1ac7875158 |
Transpilation MD5: | 6d5263c53111e539d204fc1d4ec9cc11 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-18 12:41:14 |
Source code size: | 145 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 244 / 332 |
Version history: | 2 change(s) |
Referenced in: | [show references] |