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

3
LINES

< > BotCompany Repo | #1032252 // iceil_divideByPowerOfTwo

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

Libraryless. Click here for Pure Java version (28L/1K).

static int iceil_divideByPowerOfTwo(int exponent, int x) {
  ret (x + (1 << exponent) - 1) >> exponent;
}

Author comment

Began life as a copy of #1011273

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032252
Snippet name: iceil_divideByPowerOfTwo
Eternal ID of this version: #1032252/1
Text MD5: bb33a7dde5673abbd335ef965c8dbcd1
Transpilation MD5: f259d6e1e17a8df43e48530efe196f0a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-23 01:11:32
Source code size: 107 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 74 / 127
Referenced in: [show references]