Clang documentation says:
_Float16 arithmetic will be performed using native half-precision support when available on the target (e.g. on ARMv8.2a); otherwise it will be performed at a higher precision (currently always float) and then truncated down to _Float16.
Is there a way to say I want to use _Float16
only in the first case, and float
otherwise, to avoid the truncation in the second case? I.e. something like
#if ???
using float_maybe_16 = _Float16;
#else
using float_maybe_16 = float;
#endif