Commit 2349f71e authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed isPow2 function

Parentheses around operator& are necessary due to operator priority
parent ab4801d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -104,13 +104,13 @@ inline int roundToMultiple( int number, int multiple )
__cuda_callable__
inline bool isPow2( int x )
{
   return ( x & ( x - 1 ) == 0 );
   return ( ( x & ( x - 1 ) ) == 0 );
}

__cuda_callable__
inline bool isPow2( long int x )
{
   return ( x & ( x - 1 ) == 0 );
   return ( ( x & ( x - 1 ) ) == 0 );
}