Libraryless. Click here for Pure Java version (28L/1K).
static long rightShift_ceil(long a, int shift) { ret (a+(1 << shift)-1) >> shift; }
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: | 215 / 301 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |