1 | static int idiv_ceil(int a, int b) { |
2 | ret (a+b-1)/b; |
3 | } |
4 | |
5 | static int idiv_ceil(long a, long b) { |
6 | ret toInt_checked((a+b-1)/b); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020216 |
Snippet name: | idiv_ceil - integer divide, round up |
Eternal ID of this version: | #1020216/2 |
Text MD5: | bf6f22b0781c300486c274cc345b859d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-03 18:03:53 |
Source code size: | 135 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 350 / 403 |
Version history: | 1 change(s) |
Referenced in: | [show references] |