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

3
LINES

< > BotCompany Repo | #1012916 // bitClear - test if a bit in int is 0

JavaX fragment (include)

static bool bitClear(int x, int bit) {
  ret (x & (1 << bit)) == 0;
}

Author comment

Began life as a copy of #1004603

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: #1012916
Snippet name: bitClear - test if a bit in int is 0
Eternal ID of this version: #1012916/1
Text MD5: 3273f224e1bbb961365ee6c1d6a6157b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-16 14:17:21
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 395 / 422
Referenced in: [show references]