Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1032585 // ld_iceil - logarithm in base 2, rounded up

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (98L) is out of date.

1  
static int ld_iceil(double d) {
2  
  ret iceil(ld(d));
3  
}
4  
5  
static int ld_iceil(int i) {
6  
  ret numberOfBitsNeededToRepresentNOptions(i);
7  
}

Author comment

Began life as a copy of #1032584

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032585
Snippet name: ld_iceil - logarithm in base 2, rounded up
Eternal ID of this version: #1032585/3
Text MD5: 370d415cd61221f187b17a2f640d848c
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-23 07:19:53
Source code size: 139 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 81 / 124
Version history: 2 change(s)
Referenced in: [show references]