Fix ambiguity of __clz and __clzll

[ROCm/hip commit: 11c91c2fdd]
Dieser Commit ist enthalten in:
Yaxun Sam Liu committed 2018-08-31 18:07:57 -04:00
1 Ursprung ae41c374fe
Commit 275d66917e
3 Dateien geändert
+29 -15

Keine Dateien entsprechen Ihrer Suche

+15
Datei anzeigen
@@ -67,6 +67,21 @@ unsigned int firstbit_u64(unsigned long long int a) {
return pos;
}
// Check implicit conversion will not cause ambiguity.
__device__ void test_ambiguity() {
short s;
unsigned short us;
float f;
int i;
unsigned int ui;
__clz(f);
__clz(s);
__clz(us);
__clzll(f);
__clzll(i);
__clzll(ui);
}
__global__ void HIP_kernel(hipLaunchParm lp, unsigned int* a, unsigned int* b, unsigned int* c,
unsigned long long int* d, int width, int height) {
int x = blockDim.x * blockIdx.x + threadIdx.x;