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

3
LINES

< > BotCompany Repo | #1010761 // testBit - bit = 0 to 31

JavaX fragment (include)

1  
static bool testBit(int i, int bit) {
2  
  ret (i & (1 << bit)) != 0;
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010761
Snippet name: testBit - bit = 0 to 31
Eternal ID of this version: #1010761/2
Text MD5: ea69520f822e769f359b3248b0715052
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-23 02:42:26
Source code size: 70 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 461
Version history: 1 change(s)
Referenced in: [show references]