Libraryless. Click here for Pure Java version (33L/1K).
static int numberOfBits(int i) { ret 32-Int.numberOfLeadingZeros(i); }
Began life as a copy of #1028514
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035686 |
Snippet name: | numberOfBits |
Eternal ID of this version: | #1035686/1 |
Text MD5: | b9faa225769ebebdc2b42078af444952 |
Transpilation MD5: | 557175ab9f5ae69aac289d52ff1926b2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-06 21:33:27 |
Source code size: | 74 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 119 / 172 |
Referenced in: | [show references] |