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 362a09a commit af26e93Copy full SHA for af26e93
clang/lib/Headers/hlsl/hlsl_intrinsic_helpers.h
@@ -149,7 +149,7 @@ template <typename T> constexpr T ldexp_impl(T X, T Exp) {
149
}
150
151
template <typename K, typename T, int BitWidth>
152
-constexpr uint firstbithigh_impl(T X) {
+constexpr K firstbithigh_impl(T X) {
153
K FBH = __builtin_hlsl_elementwise_firstbithigh(X);
154
#if defined(__DIRECTX__)
155
// The firstbithigh DXIL ops count bits from the wrong side, so we need to
0 commit comments