Warning: session_start(): open(/var/lib/php/sessions/sess_e681nq8mvrs4j36b7bh0vvm4em, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
isPowerOfTwo [1031289]

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

3
LINES

< > BotCompany Repo | #1031289 // isPowerOfTwo

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

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

1  
sbool isPowerOfTwo(int x) {
2  
  ret (x != 0) && ((x & (x - 1)) == 0);
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031289
Snippet name: isPowerOfTwo
Eternal ID of this version: #1031289/1
Text MD5: 37d7b1d3deb9e497e50468496c9e0ccf
Transpilation MD5: 945223af5d4c4521e3959f15e88ba286
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-03 05:21:50
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 564 / 699
Referenced in: [show references]