Intrinsics for Converting Half Floats that Map to 3rd Generation Intel® Core™ Processor Instructions
There are four intrinsics for converting the half-float values.
To use these intrinsics, include the
immintrin.hfile as follows:
These intrinsics convert packed half-precision values starting from the first CPUs with the Intel® AVX instructions support that do not really have any special instructions performing FP16 conversions.
Therefore, the intrinsics are lowered to runtime library function calls and map to 3rd Generation Intel® Core™ Processor instructions only when such a processor is specified as target CPU using the
-Qx<CPU>/-x<CPU>option, where <CPU> is the name of a CPU with support of 3rd Generation Intel® Core™ Processor Instruction Extensions.