Drop use of NVCC_COMPAT since it is always set

This commit is contained in:
Brian Sumner
2018-07-27 09:29:29 -07:00
parent 1a09b9d4d4
commit 71f96388ed
5 changed files with 0 additions and 73 deletions
-8
View File
@@ -49,21 +49,13 @@ THE SOFTWARE.
template <typename T>
int lastbit(T a) {
if (a == 0)
#if defined(__HIP_PLATFORM_HCC__) && !defined(NVCC_COMPAT)
return -1;
#else
return 0;
#endif
int pos = 1;
while ((a & 1) != 1) {
a >>= 1;
pos++;
}
#if defined(__HIP_PLATFORM_HCC__) && !defined(NVCC_COMPAT)
return pos - 1;
#else
return pos;
#endif
}