mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-05-08 21:56:58 +03:00
add USBrelay
This commit is contained in:
3
powerof2.c
Normal file
3
powerof2.c
Normal file
@@ -0,0 +1,3 @@
|
||||
int IsPowerOfTwo(uint64_t x){
|
||||
return (x != 0) && ((x & (x - 1)) == 0);
|
||||
}
|
||||
Reference in New Issue
Block a user