MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / operator""_h

Function operator""_h

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

Half literal. While this returns an actual half-precision value, half literals can unfortunately not be constant expressions due to rather involved conversions. \param value literal value \return half with given value (if representable)

Source from the content-addressed store, hash-verified

1210 /// \param value literal value
1211 /// \return half with given value (if representable)
1212 inline half operator""_h(long double value) { return half(detail::binary, detail::float2half<half::round_style>(value)); }
1213 }
1214#endif
1215

Callers

nothing calls this directly

Calls 1

halfClass · 0.70

Tested by

no test coverage detected