| 828 | typename std::enable_if_t<std::is_integral<T>::value && |
| 829 | std::is_signed<T>::value>* = nullptr> |
| 830 | AF_CONSTEXPR __DH__ native_half_t int2half(T value) noexcept { |
| 831 | native_half_t out = (value < 0) ? int2half_impl<R, true, T>(value) |
| 832 | : int2half_impl<R, false, T>(value); |
| 833 | return out; |
| 834 | } |
| 835 | #endif |
| 836 | |
| 837 | template<typename T, std::float_round_style R = std::round_to_nearest |
nothing calls this directly
no test coverage detected