We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5136177 + 33256f5 commit 4d7d3aeCopy full SHA for 4d7d3ae
source/ur/ur.hpp
@@ -337,7 +337,7 @@ roundToHighestFactorOfGlobalSize(size_t &ThreadsPerBlockInDim,
337
338
// Returns whether or not Value is a power of 2
339
template <typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
340
-bool isPowerOf2(const T &Value) {
+bool isPowerOf2(const T Value) {
341
return Value && !(Value & (Value - 1));
342
}
343
0 commit comments