Skip to content

Commit af26e93

Browse files
committed
Fix return type of firstbithigh_impl after the refactor
1 parent 362a09a commit af26e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsic_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ template <typename T> constexpr T ldexp_impl(T X, T Exp) {
149149
}
150150

151151
template <typename K, typename T, int BitWidth>
152-
constexpr uint firstbithigh_impl(T X) {
152+
constexpr K firstbithigh_impl(T X) {
153153
K FBH = __builtin_hlsl_elementwise_firstbithigh(X);
154154
#if defined(__DIRECTX__)
155155
// The firstbithigh DXIL ops count bits from the wrong side, so we need to

0 commit comments

Comments
 (0)