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

Function int2half_impl

src/backend/common/half.hpp:133–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132template<>
133AF_CONSTEXPR __DH__ native_half_t int2half_impl(int value) noexcept {
134 return __int2half_rn(value);
135}
136
137template<>
138AF_CONSTEXPR __DH__ native_half_t int2half_impl(unsigned value) noexcept {

Callers 1

int2halfFunction · 0.70

Calls 1

AF_IF_CONSTEXPRFunction · 0.85

Tested by

no test coverage detected