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

3
LINES

< > BotCompany Repo | #1029457 // rightShift_ceil

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

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

1  
static long rightShift_ceil(long a, int shift) {
2  
  ret (a+(1 << shift)-1) >> shift;
3  
}

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: #1029457
Snippet name: rightShift_ceil
Eternal ID of this version: #1029457/2
Text MD5: 7f9dad55254fc3fa9c240dba99d96b94
Transpilation MD5: b2a78b3fd73153fa454e5989b2152c3a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-08 15:46:52
Source code size: 87 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 301
Version history: 1 change(s)
Referenced in: [show references]