MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / int2half

Function int2half

src/backend/common/half.hpp:830–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828 typename std::enable_if_t<std::is_integral<T>::value &&
829 std::is_signed<T>::value>* = nullptr>
830AF_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
837template<typename T, std::float_round_style R = std::round_to_nearest

Callers

nothing calls this directly

Calls 1

int2half_implFunction · 0.70

Tested by

no test coverage detected