There are four intrinsics for converting half-floats to 32-bit floats and 32-bit floats to half-floats. The prototypes for these half-float conversion intrinsics are in the emmintrin.h file.
float _cvtsh_ss(unsigned short x, int imm);
This intrinsic takes a half-float value, x, and converts it to a 32-bit float value, which is returned.
unsigned short _cvtss_sh(float x, int imm);
This intrinsic takes a 32-bit float value, x, and converts it to a half-float value, which is returned.
Copyright © 1996-2011, Intel Corporation. All rights reserved.