Alex_tz307

X = pow of 2

Sep 14th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.08 KB | None | 0 0
  1. inline bool Putere2(unsigned int x) {
  2.     return (x != 0) && ((x & (x - 1)) == 0);
  3. }
Advertisement
Add Comment
Please, Sign In to add comment