Skip to content

Commit 81dd7ee

Browse files
committed
forgot to call macro for max half case
1 parent dabf384 commit 81dd7ee

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,30 +1698,7 @@ half3 max(half3, half3);
16981698
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
16991699
_HLSL_BUILTIN_ALIAS(__builtin_elementwise_max)
17001700
half4 max(half4, half4);
1701-
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
1702-
constexpr half2 max(half2 p0, half p1) {
1703-
return __builtin_elementwise_max(p0, (half2)p1);
1704-
}
1705-
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
1706-
constexpr half2 max(half p0, half2 p1) {
1707-
return __builtin_elementwise_max((half2)p0, p1);
1708-
}
1709-
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
1710-
constexpr half3 max(half3 p0, half p1) {
1711-
return __builtin_elementwise_max(p0, (half3)p1);
1712-
}
1713-
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
1714-
constexpr half3 max(half p0, half3 p1) {
1715-
return __builtin_elementwise_max((half3)p0, p1);
1716-
}
1717-
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
1718-
constexpr half4 max(half4 p0, half p1) {
1719-
return __builtin_elementwise_max(p0, (half4)p1);
1720-
}
1721-
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
1722-
constexpr half4 max(half p0, half4 p1) {
1723-
return __builtin_elementwise_max((half4)p0, p1);
1724-
}
1701+
GEN_VEC_SCALAR_OVERLOADS(max, half, 1)
17251702

17261703
#ifdef __HLSL_ENABLE_16_BIT
17271704
_HLSL_AVAILABILITY(shadermodel, 6.2)

0 commit comments

Comments
 (0)