mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix conversion fail when build with -O2 fail (#1193)
* fix conversion fail when compile with gcc -O2 * fix format check error * fix format check error
This commit is contained in:
@@ -29,8 +29,8 @@ static uint32_t clz(uint64_t value)
|
||||
|
||||
for( num_zeros = 0; num_zeros < (sizeof(uint64_t)*8); num_zeros++)
|
||||
{
|
||||
if(0x8000000000000000 & (value << num_zeros))
|
||||
break;
|
||||
volatile uint64_t v = 0x8000000000000000ull & (value << num_zeros);
|
||||
if (v) break;
|
||||
}
|
||||
return num_zeros;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user