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

Function half2float

extern/half/include/half.hpp:959–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957 /// \param value binary representation of half-precision value
958 /// \return floating point value
959 template<typename T> T half2float(uint16 value)
960 {
961 return half2float_impl(value, T(), bool_type<std::numeric_limits<T>::is_iec559&&sizeof(typename bits<T>::type)==sizeof(T)>());
962 }
963
964 /// Convert half-precision floating point to integer.
965 /// \tparam R rounding mode to use, `std::round_indeterminate` for fastest rounding

Callers

nothing calls this directly

Calls 1

half2float_implFunction · 0.70

Tested by

no test coverage detected