MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / native_half_t float2half_impl

Function native_half_t float2half_impl

src/backend/common/half.hpp:178–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177template<std::float_round_style R = std::round_to_nearest>
178AF_CONSTEXPR native_half_t float2half_impl(float value) {
179 return static_cast<native_half_t>(value);
180}
181
182template<std::float_round_style R = std::round_to_nearest>
183AF_CONSTEXPR native_half_t float2half_impl(double value) {

Callers

nothing calls this directly

Calls 2

AF_IF_CONSTEXPRFunction · 0.85
maxFunction · 0.50

Tested by

no test coverage detected