================ @@ -89,23 +89,31 @@ void asuint(double4, out uint4, out uint4); /// \param X The X input value. /// \param Y The Y input value. +template <typename T> _HLSL_16BIT_AVAILABILITY(shadermodel, 6.2) -const inline half distance(half X, half Y) { +const inline __detail::enable_if_t<__detail::is_arithmetic<T>::Value && + __detail::is_same<half, T>::value, ---------------- bogner wrote:
Agree it makes sense to leave as a cleanup, but we should use lower case `value` here rather than llvm conventions since these helpers match the standard C++ versions of the same. https://github.com/llvm/llvm-project/pull/130724 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits