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.
1 parent 87c6c1d commit cab0ddbCopy full SHA for cab0ddb
include/nbl/builtin/hlsl/bit.hlsl
@@ -66,7 +66,7 @@ uint16_t countl_zero(T n)
66
const uint16_t shift = bits_log2 ? uint16_t(1)<<(bits_log2-1) : 0;
67
const uint64_t loMask = bits_log2 ? (1ull<<shift)-1 : 0;
68
const bool chooseHigh = n&(loMask<<shift);
69
- n = T(chooseHigh ? (n>shift):n)&loMask;
+ n = uint16_t((chooseHigh ? (n>shift):n)&loMask);
70
71
result += uint16_t(chooseHigh ? 0ull : shift);
72
}
0 commit comments