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.

static int ld_iceil(double d) {
  ret iceil(ld(d));
}

static int ld_iceil(int i) {
  ret numberOfBitsNeededToRepresentNOptions(i);
}

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: 76 / 116
Version history: 2 change(s)
Referenced in: [show references]